summaryrefslogtreecommitdiffstats
path: root/src/arch/x86_64
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/x86_64')
-rw-r--r--src/arch/x86_64/prefix/linuxprefix.S3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/arch/x86_64/prefix/linuxprefix.S b/src/arch/x86_64/prefix/linuxprefix.S
index 20163b8a4..4aa0b8403 100644
--- a/src/arch/x86_64/prefix/linuxprefix.S
+++ b/src/arch/x86_64/prefix/linuxprefix.S
@@ -13,6 +13,9 @@ _start:
andq $~15, %rsp // 16-byte align the stack
+ call save_args
+
+ /* Our main doesn't use any arguments */
call main
movq %rax, %rdi // rc -> syscall arg1