From 3d806c9e2fcb6226915982b6514919a3b9dac4dc Mon Sep 17 00:00:00 2001 From: Ada Christine Date: Sat, 1 Feb 2025 23:25:40 +0000 Subject: write syscall functions --- boot/fake_syscall_entry.S | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'boot/fake_syscall_entry.S') diff --git a/boot/fake_syscall_entry.S b/boot/fake_syscall_entry.S index 9daa0d5..f75c2d7 100644 --- a/boot/fake_syscall_entry.S +++ b/boot/fake_syscall_entry.S @@ -5,17 +5,7 @@ .extern fake_syscall_handler -fake_syscall_start: - cli - mov %rdi, %rsp - 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 @@ -34,6 +24,11 @@ fake_syscall_start: 104 state.return_cs */ +fake_syscall_start: + cli + mov %rdi, %rsp + jmp .L_fake_syscall_return + fake_syscall_entry: sub $112, %rsp mov %rax, 8(%rsp) -- cgit v1.3.1-1-g115d