Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/xen/i386 Add missing #ifdef DDB, ok'ed by bouyer@.



details:   https://anonhg.NetBSD.org/src/rev/decbda5b868f
branches:  trunk
changeset: 574702:decbda5b868f
user:      xtraeme <xtraeme%NetBSD.org@localhost>
date:      Wed Mar 09 23:40:08 2005 +0000

description:
Add missing #ifdef DDB, ok'ed by bouyer@.

diffstat:

 sys/arch/xen/i386/machdep.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r c50a4a9735c9 -r decbda5b868f sys/arch/xen/i386/machdep.c
--- a/sys/arch/xen/i386/machdep.c       Wed Mar 09 23:24:50 2005 +0000
+++ b/sys/arch/xen/i386/machdep.c       Wed Mar 09 23:40:08 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.12 2005/03/09 22:39:20 bouyer Exp $      */
+/*     $NetBSD: machdep.c,v 1.13 2005/03/09 23:40:08 xtraeme Exp $     */
 /*     NetBSD: machdep.c,v 1.559 2004/07/22 15:12:46 mycroft Exp       */
 
 /*-
@@ -73,7 +73,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.12 2005/03/09 22:39:20 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.13 2005/03/09 23:40:08 xtraeme Exp $");
 
 #include "opt_beep.h"
 #include "opt_compat_ibcs2.h"
@@ -2054,8 +2054,9 @@
 #if !defined(XEN)
        cpu_init_idt();
 #else
+#ifdef DDB
        db_trap_callback = ddb_trap_hook;
-
+#endif
        XENPRINTF(("HYPERVISOR_set_trap_table %p\n", xen_idt));
        if (HYPERVISOR_set_trap_table(xen_idt))
                panic("HYPERVISOR_set_trap_table %p failed\n", xen_idt);



Home | Main Index | Thread Index | Old Index