]>
git.dujemihanovic.xyz Git - nameless-os.git/blob - kernel/arch/x86/irq/sample_handler.c
2 #include <irq/i8259a.h>
5 #include <time/i8254.h>
7 unsigned int ticks
= 0;
9 typedef uint32_t uword_t
;
11 struct interrupt_frame
{
19 __attribute__((interrupt
))
20 void keyb_handler(struct interrupt_frame
*frame
)
23 kprint("Got a keyboard interrupt!\n", 0);
28 __attribute__((interrupt
))
29 void double_fault(struct abort_frame
*frame
)
31 *(volatile uint32_t *) (0xb8000) = 0xcf28cf3a;
33 asm volatile ("cli; hlt");
38 __attribute__((interrupt
))
39 void timer_tick(struct interrupt_frame
*frame
)