A poorly written OS for the x86 arch. (WIP)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
eOS/kernel/isr.asm

54 lines
775 B

3 years ago
%macro isr_err_stub 1
isr_stub_%+%1:
3 years ago
cli
pusha
3 years ago
push byte %1
call interupt_handler
pop eax
popa
sti
3 years ago
iret
%endmacro
extern interupt_handler
3 years ago
isr_err_stub 0
3 years ago
isr_err_stub 1
3 years ago
isr_err_stub 2
isr_err_stub 3
isr_err_stub 4
isr_err_stub 5
3 years ago
isr_err_stub 6
3 years ago
isr_err_stub 7
3 years ago
isr_err_stub 8 ; err
3 years ago
isr_err_stub 9 ; keyboard?
3 years ago
isr_err_stub 10
isr_err_stub 11
isr_err_stub 12
3 years ago
isr_err_stub 13
3 years ago
isr_err_stub 14
3 years ago
isr_err_stub 15
isr_err_stub 16
3 years ago
isr_err_stub 17
3 years ago
isr_err_stub 18
isr_err_stub 19
isr_err_stub 20
isr_err_stub 21
isr_err_stub 22
isr_err_stub 23
isr_err_stub 24
isr_err_stub 25
isr_err_stub 26
isr_err_stub 27
isr_err_stub 28
isr_err_stub 29
3 years ago
isr_err_stub 30
3 years ago
isr_err_stub 31
3 years ago
global isr_stub_table
isr_stub_table:
%assign i 0
%rep 32
dd isr_stub_%+i
%assign i i+1
%endrep