]>
git.dujemihanovic.xyz Git - nameless-os.git/blob - kernel/arch/x86/irq/sample_handler.c
d9bd8f9c953a3e48a46b6695957e28d6650aed0d
2 #include <irq/i8259a.h>
6 typedef uint32_t uword_t
;
8 struct interrupt_frame
{
16 __attribute__((interrupt
))
17 void keyb_handler(struct interrupt_frame
*frame
)
20 kprint("Got a keyboard interrupt!\n", 0);
25 __attribute__((interrupt
))
26 void double_fault(struct abort_frame
*frame
)
28 *(volatile char *) (0xb8000) = ":";
29 *(volatile char *) (0xb8002) = "(";
30 asm volatile ("cli; hlt");