Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/macppc/macppc Preserve kernel symbol table not only...



details:   https://anonhg.NetBSD.org/src/rev/18b63c859292
branches:  trunk
changeset: 557660:18b63c859292
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Wed Jan 14 14:08:40 2004 +0000

description:
Preserve kernel symbol table not only #if defined(DDB) but
also #if NKSYMS > 0 || defined(LKM).
Should fix port-macppc/21742.

diffstat:

 sys/arch/macppc/macppc/locore.S |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 660d8db93ee1 -r 18b63c859292 sys/arch/macppc/macppc/locore.S
--- a/sys/arch/macppc/macppc/locore.S   Wed Jan 14 13:46:26 2004 +0000
+++ b/sys/arch/macppc/macppc/locore.S   Wed Jan 14 14:08:40 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.S,v 1.51 2003/07/31 07:50:02 matt Exp $ */
+/*     $NetBSD: locore.S,v 1.52 2004/01/14 14:08:40 tsutsui Exp $      */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -38,6 +38,7 @@
 #include "opt_multiprocessor.h"
 #include "opt_altivec.h"
 #include "opt_ppcparam.h"
+#include "ksyms.h"
 #include "assym.h"
 
 #include <sys/syscall.h>
@@ -100,7 +101,7 @@
 /* compute end of kernel memory */
        lis     4,_C_LABEL(end)@ha
        addi    4,4,_C_LABEL(end)@l
-#ifdef DDB
+#if NKSYMS || defined(DDB) || defined(LKM)
        /* skip symbol table */
        cmpwi   6,0
        beq     1f



Home | Main Index | Thread Index | Old Index