diff options
| author | Ada Christine <adachristine18@gmail.com> | 2025-02-01 23:25:40 +0000 |
|---|---|---|
| committer | Ada Christine <adachristine18@gmail.com> | 2025-02-01 23:25:40 +0000 |
| commit | 3d806c9e2fcb6226915982b6514919a3b9dac4dc (patch) | |
| tree | cae747e3a5c6e31f89069e0ba1a7ae90cc4b85d9 /boot/fake_syscall_entry.S | |
| parent | f76631c47b92b0778b1073bcab55dc1240422f20 (diff) | |
write syscall functions
Diffstat (limited to 'boot/fake_syscall_entry.S')
| -rw-r--r-- | boot/fake_syscall_entry.S | 15 |
1 files changed, 5 insertions, 10 deletions
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) |
