summaryrefslogtreecommitdiff
path: root/stage3/halt.c
diff options
context:
space:
mode:
Diffstat (limited to 'stage3/halt.c')
-rw-r--r--stage3/halt.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/stage3/halt.c b/stage3/halt.c
index 9e0ecce..b53a4f2 100644
--- a/stage3/halt.c
+++ b/stage3/halt.c
@@ -1,14 +1,15 @@
#include "halt.h"
#include "font.h"
+#include "pic.h"
-void halt()
+void freeze()
{
for (;;)
- asm volatile("hlt");
+ wait_irq();
}
-void panic(char *msg)
+void panic(str msg)
{
print(msg);
- halt();
+ freeze();
}