From 9eb6ed80824c3b561a1816502277333154f3d78d Mon Sep 17 00:00:00 2001 From: beveloper Date: Thu, 28 Nov 2002 14:11:08 +0000 Subject: [PATCH] disable interrupt check when in a panic() context git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2104 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/core/debug.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/kernel/core/debug.c b/src/kernel/core/debug.c index 842242866f..ee0b370baa 100644 --- a/src/kernel/core/debug.c +++ b/src/kernel/core/debug.c @@ -258,6 +258,11 @@ panic(const char *fmt, ...) va_list args; char temp[128]; int state; + + // XXX by setting kernel_startup = true, we disable + // XXX the interrupt check in semaphore code etc. + // XXX should be renamed? + kernel_startup = true; dbg_set_serial_debug(true);