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:
parent
842a265376
commit
754fdef3d7
@ -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");
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user