Module Name: src Committed By: phx Date: Tue Apr 19 18:06:19 UTC 2011
Modified Files: src/sys/arch/sandpoint/sandpoint: machdep.c Log Message: Make it compile when no kernel symbols and no debugger is configured. To generate a diff of this commit: cvs rdiff -u -r1.55 -r1.56 src/sys/arch/sandpoint/sandpoint/machdep.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/sandpoint/sandpoint/machdep.c diff -u src/sys/arch/sandpoint/sandpoint/machdep.c:1.55 src/sys/arch/sandpoint/sandpoint/machdep.c:1.56 --- src/sys/arch/sandpoint/sandpoint/machdep.c:1.55 Sat Mar 12 16:49:16 2011 +++ src/sys/arch/sandpoint/sandpoint/machdep.c Tue Apr 19 18:06:19 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.55 2011/03/12 16:49:16 phx Exp $ */ +/* $NetBSD: machdep.c,v 1.56 2011/04/19 18:06:19 phx Exp $ */ /* * Copyright (C) 1995, 1996 Wolfgang Solfrank. @@ -32,7 +32,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.55 2011/03/12 16:49:16 phx Exp $"); +__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.56 2011/04/19 18:06:19 phx Exp $"); #include "opt_compat_netbsd.h" #include "opt_ddb.h" @@ -183,10 +183,14 @@ cn_tab = &kcomcons; (*cn_tab->cn_init)(&kcomcons); +#if NKSYMS || defined(DDB) || defined(MODULAR) ksyms_addsyms_elf((int)((u_int)endsym - (u_int)startsym), startsym, endsym); +#endif +#ifdef DDB if (boothowto & RB_KDB) Debugger(); #endif +#endif /* Initialize bus_space */ sandpoint_bus_space_init();