bottleros/Kernel/interruptions/irqDispatcher.c

27 lines
317 B
C
Executable File

#include <time.h>
#include <stdint.h>
static void int_20();
static void int_21();
void keyboard_handler();
void irqDispatcher(uint64_t irq) {
switch (irq) {
case 0:
int_20();
break;
case 1:
int_21();
break;
}
return;
}
void int_20() {
timer_handler();
}
void int_21() {
keyboard_handler();
}