summaryrefslogtreecommitdiff
path: root/boot/fake_syscall_entry.S
diff options
context:
space:
mode:
authorAda Christine <adachristine18@gmail.com>2025-02-01 20:49:58 +0000
committerAda Christine <adachristine18@gmail.com>2025-02-01 20:49:58 +0000
commitf76631c47b92b0778b1073bcab55dc1240422f20 (patch)
treeba44c92784705e1e0e0fced1428a17056537f711 /boot/fake_syscall_entry.S
parent9792d78c44ebddd128785a00358cbf38ac714d5d (diff)
fake syscall mechanism can return to user mode
Diffstat (limited to 'boot/fake_syscall_entry.S')
-rw-r--r--boot/fake_syscall_entry.S7
1 files changed, 6 insertions, 1 deletions
diff --git a/boot/fake_syscall_entry.S b/boot/fake_syscall_entry.S
index 8a3f8c8..9daa0d5 100644
--- a/boot/fake_syscall_entry.S
+++ b/boot/fake_syscall_entry.S
@@ -11,6 +11,11 @@ fake_syscall_start:
jmp .L_fake_syscall_return
/*
+ Fake syscall mechanism
+
+ The Kjarna kernel runtime loader/linker is started by the Kjarna boot kernel and supported
+ by a subset of system calls in order to load files and place them in virtual memory.
+
SYSCALL STACK FRAME - FROM LOWER TO HIGHER ADDRESS
0 pad
@@ -53,7 +58,7 @@ fake_syscall_entry:
push %rbp
mov %rsp, %rbp
- add $64, %rsp
+ add $72, %rsp
popfq
mov %rbp, %rsp
pop %rbp