Conditionalize T_DBPAUSE trap handling on #ifdef MULTIPROCESSOR to make

single CPU kernels compile again.
This commit is contained in:
martin 2002-12-26 12:14:31 +00:00
parent fb684df6a8
commit ffbcb6d927
1 changed files with 3 additions and 1 deletions

View File

@ -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 @@ trap(type, psr, pc, tf)
return;
}
}
#ifdef MULTIPROCESSOR
if (type == T_DBPAUSE) {
/* XXX - deal with kgdb too */
extern void ddb_suspend(struct trapframe *tf);
@ -301,6 +302,7 @@ trap(type, psr, pc, tf)
return;
}
#endif
#endif
#ifdef DIAGNOSTIC
/*
* Currently, we allow DIAGNOSTIC kernel code to