syscall: add basic syscall entry

Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
Michael Shaw 2026-07-15 16:36:38 -04:00
commit c01b1d7eee
12 changed files with 154 additions and 15 deletions

View file

@ -13,8 +13,7 @@
.global _exception_\nr
_exception_\nr:
mov rdi, \nr
popq rsi
call exception_handler
pop rsi
iretq
.endm
@ -34,20 +33,20 @@ exception 0x04
exception 0x05
exception 0x06
exception 0x07
exception 0x08
exception_err 0x08
exception 0x09
exception 0x0A
exception 0x0B
exception 0x0C
exception 0x0D
exception 0x0E
exception_err 0x0A
exception_err 0x0B
exception_err 0x0C
exception_err 0x0D
exception_err 0x0E
exception 0x0F
exception 0x10
exception 0x11
exception_err 0x11
exception 0x12
exception 0x13
exception 0x14
exception 0x15
exception_err 0x15
exception 0x16
exception 0x17
exception 0x18
@ -55,8 +54,8 @@ exception 0x19
exception 0x1A
exception 0x1B
exception 0x1C
exception 0x1D
exception 0x1E
exception_err 0x1D
exception_err 0x1E
exception 0x1F
irq 0x00