Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc/sparc Conditionalize T_DBPAUSE trap handling ...



details:   https://anonhg.NetBSD.org/src/rev/a5c1ce106174
branches:  trunk
changeset: 540841:a5c1ce106174
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Dec 26 12:14:31 2002 +0000

description:
Conditionalize T_DBPAUSE trap handling on #ifdef MULTIPROCESSOR to make
single CPU kernels compile again.

diffstat:

 sys/arch/sparc/sparc/trap.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r 71641d016ba7 -r a5c1ce106174 sys/arch/sparc/sparc/trap.c
--- a/sys/arch/sparc/sparc/trap.c       Thu Dec 26 12:01:48 2002 +0000
+++ b/sys/arch/sparc/sparc/trap.c       Thu Dec 26 12:14:31 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: trap.c,v 1.117 2002/12/23 00:55:17 pk Exp $ */
+/*     $NetBSD: trap.c,v 1.118 2002/12/26 12:14:31 martin Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -292,6 +292,7 @@
                                return;
                        }
                }
+#ifdef MULTIPROCESSOR
                if (type == T_DBPAUSE) {
                        /* XXX - deal with kgdb too */
                        extern void ddb_suspend(struct trapframe *tf);
@@ -301,6 +302,7 @@
                        return;
                }
 #endif
+#endif
 #ifdef DIAGNOSTIC
                /*
                 * Currently, we allow DIAGNOSTIC kernel code to



Home | Main Index | Thread Index | Old Index