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
This commit is contained in:
Axel Dörfler 2004-06-17 00:59:02 +00:00
parent 842a265376
commit 754fdef3d7

View File

@ -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");
}