From f76631c47b92b0778b1073bcab55dc1240422f20 Mon Sep 17 00:00:00 2001 From: Ada Christine Date: Sat, 1 Feb 2025 20:49:58 +0000 Subject: fake syscall mechanism can return to user mode --- boot/fake_syscall_entry.S | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'boot/fake_syscall_entry.S') 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 -- cgit v1.3.1-1-g115d