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:
@@ -17,13 +17,17 @@ panic(const char *format, ...)
|
|||||||
{
|
{
|
||||||
va_list list;
|
va_list list;
|
||||||
|
|
||||||
|
platform_switch_to_text_mode();
|
||||||
|
|
||||||
puts("*** PANIC ***");
|
puts("*** PANIC ***");
|
||||||
|
|
||||||
va_start(list, format);
|
va_start(list, format);
|
||||||
vprintf(format, list);
|
vprintf(format, list);
|
||||||
va_end(list);
|
va_end(list);
|
||||||
|
|
||||||
for (;;) ;
|
// ToDo: add "press key to reboot" functionality
|
||||||
|
for (;;)
|
||||||
|
asm("hlt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user