summary refs log tree commit diff
path: root/src/start.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/start.s')
-rw-r--r--src/start.s2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/start.s b/src/start.s index 58efed0..683bfe7 100644 --- a/src/start.s +++ b/src/start.s
@@ -7,7 +7,7 @@ _start:
7 movl (%rsp), %edi # argc = first 4 bytes of stack. 7 movl (%rsp), %edi # argc = first 4 bytes of stack.
8 leaq 8(%rsp), %rsi # argv = address of first arg ptr. 8 leaq 8(%rsp), %rsi # argv = address of first arg ptr.
9 9
10 call main # see main.c. 10 call main
11 11
12 movl %eax, %edi # status = ret val. 12 movl %eax, %edi # status = ret val.
13 movl $1, %eax # SYS_exit = 1. 13 movl $1, %eax # SYS_exit = 1.