]>
git.dujemihanovic.xyz Git - nameless-os.git/blob - kernel/arch/x86/irq/sample_handler.c
f4f4a4bfefad5aacf742f3c6ce2046c86eb1b85e
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 uint32_t *) (0xb8000) = 0xcf28cf3a;
30 asm volatile ("cli; hlt");