skeleton for irq's

This commit is contained in:
shockrah 2019-11-07 10:58:25 -08:00
parent b111e7815f
commit 566e65cfea
2 changed files with 30 additions and 1 deletions

View File

@ -120,7 +120,33 @@ no_err_handler 31
common_irq_handler: common_irq_handler:
ret pusha
push ds
push es
push fs
push gs
mov ax, 0x10
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
mov eax, esp
push eax
mov eax, irq_handler
call eax
pop eax
pop gs
pop fs
pop es
pop ds
popa
add esp, 8
iret
; Remapped IRQ's for the APIC ; Remapped IRQ's for the APIC

View File

@ -114,6 +114,9 @@ void interrupt_handler(struct cpu_reg_state* cpu) {
return; return;
} }
void irq_handler() {
}
void init_idt() { void init_idt() {
// setup special idt pointer // setup special idt pointer
idt_ptr.address = (u32)(&IDT); idt_ptr.address = (u32)(&IDT);