proc_quit () and proc_test () syscalls
All checks were successful
Build documentation / build-and-deploy (push) Successful in 43s

This commit is contained in:
2026-01-03 12:21:56 +01:00
parent 124a7f7215
commit cf04e3db18
13 changed files with 130 additions and 7 deletions

View File

@@ -2,9 +2,6 @@
.extern amd64_syscall_dispatch
dupa:
jmp dupa
.global amd64_syscall_entry
amd64_syscall_entry:
cli
@@ -20,21 +17,41 @@ amd64_syscall_entry:
pushq %rcx
pushq $0
pushq $0
push_regs
swapgs
cld
movq %rsp, %rdi
movq %cr3, %rax
pushq %rax
movq %rsp, %rbp
subq $8, %rsp
andq $~0xF, %rsp
callq amd64_syscall_dispatch
movq %rbp, %rsp
popq %rax
movq %rax, %cr3
pop_regs
cli
swapgs
addq $16, %rsp
popq %rcx
addq $8, %rsp
popq %r11
addq $16, %rsp
movq %gs:0, %rsp
swapgs
sysretq