skeleton for irq's
This commit is contained in:
parent
b111e7815f
commit
566e65cfea
@ -120,7 +120,33 @@ no_err_handler 31
|
||||
|
||||
|
||||
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
|
||||
|
||||
|
@ -114,6 +114,9 @@ void interrupt_handler(struct cpu_reg_state* cpu) {
|
||||
return;
|
||||
}
|
||||
|
||||
void irq_handler() {
|
||||
}
|
||||
|
||||
void init_idt() {
|
||||
// setup special idt pointer
|
||||
idt_ptr.address = (u32)(&IDT);
|
||||
|
Loading…
Reference in New Issue
Block a user