aboutsummaryrefslogtreecommitdiff
path: root/lib/sys/start.S
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sys/start.S')
-rw-r--r--lib/sys/start.S6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/sys/start.S b/lib/sys/start.S
index deafd67..1faf691 100644
--- a/lib/sys/start.S
+++ b/lib/sys/start.S
@@ -1,6 +1,10 @@
.global _start
_start:
+ mov (%rsp), %rdi
+ xor %rax, %rax
+ lea 8(%rsp, %rax, 8), %rsi
+ lea 16(%rsp, %rdi, 8), %rdx
call main
- mov %rax, %rdi
+ mov $0, %rdi
mov $60, %rax
syscall