X-Git-Url: http://git.dujemihanovic.xyz/projects?a=blobdiff_plain;f=kernel%2Farch%2Fx86%2Firq%2Fsample_handler.c;h=f4f4a4bfefad5aacf742f3c6ce2046c86eb1b85e;hb=0cd522f39687d1fed9e204e5504d19baa8d85e04;hp=d9bd8f9c953a3e48a46b6695957e28d6650aed0d;hpb=4ea950eb2243c099968ae328ecad99f94fca8a5b;p=nameless-os.git diff --git a/kernel/arch/x86/irq/sample_handler.c b/kernel/arch/x86/irq/sample_handler.c index d9bd8f9..f4f4a4b 100644 --- a/kernel/arch/x86/irq/sample_handler.c +++ b/kernel/arch/x86/irq/sample_handler.c @@ -25,9 +25,9 @@ void keyb_handler(struct interrupt_frame *frame) __attribute__((interrupt)) void double_fault(struct abort_frame *frame) { - *(volatile char *) (0xb8000) = ":"; - *(volatile char *) (0xb8002) = "("; + *(volatile uint32_t *) (0xb8000) = 0xcf28cf3a; +halt: asm volatile ("cli; hlt"); - while(1); + goto halt; }