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