refactor: replace syscall if/else chains with dispatch tables

This commit is contained in:
boreddevnl 2026-04-18 18:37:13 +02:00
parent d4b066c29f
commit b419de43f0
2 changed files with 1675 additions and 1346 deletions

View file

@ -7,12 +7,13 @@ extern syscall_handler_c
section .text section .text
; Syscall ABI: ; Syscall ABI:
; RDI = syscall_num ; RAX = syscall_num
; RSI = arg1 ; RDI = arg1
; RDX = arg2 ; RSI = arg2
; R10 = arg3 ; RDX = arg3
; R8 = arg4 ; R10 = arg4
; R9 = arg5 ; R8 = arg5
; R9 = arg6
syscall_entry: syscall_entry:
swapgs swapgs

File diff suppressed because it is too large Load diff