Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/arch/i386/i386/locore.S,v retrieving revision 1.7 retrieving revision 1.8 diff -u -p -r1.7 -r1.8 --- src/sys/arch/i386/i386/locore.S 2003/04/08 23:48:48 1.7 +++ src/sys/arch/i386/i386/locore.S 2003/04/26 18:13:16 1.8 @@ -1,4 +1,4 @@ -/* $NetBSD: locore.S,v 1.7 2003/04/08 23:48:48 thorpej Exp $ */ +/* $NetBSD: locore.S,v 1.8 2003/04/26 18:13:16 fvdl Exp $ */ /*- * Copyright (c) 1998, 2000 The NetBSD Foundation, Inc. @@ -90,6 +90,7 @@ #include "apm.h" #include "lapic.h" #include "ioapic.h" +#include "ksyms.h" #include #include @@ -513,7 +514,7 @@ try586: /* Use the `cpuid' instruction. /* Find end of kernel image. */ movl $RELOC(end),%edi -#if defined(DDB) && !defined(SYMTAB_SPACE) +#if (NKSYMS || defined(DDB) || defined(LKM)) && !defined(SYMTAB_SPACE) /* Save the symbols (if loaded). */ movl RELOC(esym),%eax testl %eax,%eax