diff options
author | Lizzy Fleckenstein <lizzy@vlhl.dev> | 2023-12-19 01:54:39 +0100 |
---|---|---|
committer | Lizzy Fleckenstein <lizzy@vlhl.dev> | 2023-12-19 02:11:32 +0100 |
commit | 6d263c7d4e0f4b1d34694b5d3d159ccb20b3db02 (patch) | |
tree | 41578268cf68b2d9ea1737687a0f98af979948d8 /stage3/halt.c | |
parent | 5881b4d5c1040c762599f90e091e4cc4c3abe6b1 (diff) | |
download | cuddles-6d263c7d4e0f4b1d34694b5d3d159ccb20b3db02.tar.xz |
keyboard driver and threads
* PS/2 keyboard driver
* interactive shell
* move away from \0 terminated strings to sized slices
* coroutine threads and IRQ queues
Diffstat (limited to 'stage3/halt.c')
-rw-r--r-- | stage3/halt.c | 9 |
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(); } |