Exemplo n.º 1
0
static __attribute__((unused)) void time_init(void)
{
    intr_map(APIC_TIMER_IRQ, APIC_TIMER_IRQ);
    intr_register(APIC_TIMER_IRQ, pit_handler);
    /* TODO: figure out how this argument converts to hertz */
    apic_enable_periodic_timer(8);
}
Exemplo n.º 2
0
static __attribute__((unused)) void syscall_init(void)
{
    intr_register(INTR_SYSCALL, syscall_handler);
}
Exemplo n.º 3
0
void
keyboard_init()
{
        intr_map(IRQ_KEYBOARD, INTR_KEYBOARD);
        intr_register(INTR_KEYBOARD, keyboard_intr_handler);
}