summaryrefslogtreecommitdiff
path: root/boot/fake_syscall_entry.S
diff options
context:
space:
mode:
Diffstat (limited to 'boot/fake_syscall_entry.S')
-rw-r--r--boot/fake_syscall_entry.S15
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)