Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sandpoint/sandpoint Make it compile when no kernel ...



details:   https://anonhg.NetBSD.org/src/rev/091f3c98f696
branches:  trunk
changeset: 764395:091f3c98f696
user:      phx <phx%NetBSD.org@localhost>
date:      Tue Apr 19 18:06:19 2011 +0000

description:
Make it compile when no kernel symbols and no debugger is configured.

diffstat:

 sys/arch/sandpoint/sandpoint/machdep.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (33 lines):

diff -r c97a676518c4 -r 091f3c98f696 sys/arch/sandpoint/sandpoint/machdep.c
--- a/sys/arch/sandpoint/sandpoint/machdep.c    Tue Apr 19 17:49:38 2011 +0000
+++ b/sys/arch/sandpoint/sandpoint/machdep.c    Tue Apr 19 18:06:19 2011 +0000
@@ -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();



Home | Main Index | Thread Index | Old Index