From 754fdef3d7868b9b5d9ad77b6bb1a5cb9ee752f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 17 Jun 2004 00:59:02 +0000 Subject: [PATCH] panic() now calls hlt instead of spinning forever. Added a ToDo comment. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8015 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/boot/platform/bios_ia32/debug.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/kernel/boot/platform/bios_ia32/debug.c b/src/kernel/boot/platform/bios_ia32/debug.c index f22d1d0b2e..5dc557a692 100644 --- a/src/kernel/boot/platform/bios_ia32/debug.c +++ b/src/kernel/boot/platform/bios_ia32/debug.c @@ -17,13 +17,17 @@ panic(const char *format, ...) { va_list list; + platform_switch_to_text_mode(); + puts("*** PANIC ***"); va_start(list, format); vprintf(format, list); va_end(list); - for (;;) ; + // ToDo: add "press key to reboot" functionality + for (;;) + asm("hlt"); }