aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorjohannst <johannes.stoelp@gmail.com>2020-11-11 19:27:30 +0100
committerjohannst <johannes.stoelp@gmail.com>2020-11-11 19:27:30 +0100
commit010414d73227c14b8b277f28c577fa3c648f474e (patch)
treeffa877908e40373b2c474ac9d1ee806f8b8ccf73 /src
parentc6ab2d3412cfbd3f8b6718b51165fab9432f2573 (diff)
downloadnotes-010414d73227c14b8b277f28c577fa3c648f474e.tar.gz
notes-010414d73227c14b8b277f28c577fa3c648f474e.zip
amd64 fix exit syscall nr
Diffstat (limited to 'src')
-rw-r--r--src/arch/x86_64.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/x86_64.md b/src/arch/x86_64.md
index 63bea81..7fd5113 100644
--- a/src/arch/x86_64.md
+++ b/src/arch/x86_64.md
@@ -182,7 +182,7 @@ _start:
syscall
mov rdi, 0 # exit code
- mov rax, 1 # exit(2) syscall nr
+ mov rax, 60 # exit(2) syscall nr
syscall
.section .rdonly, "a", @progbits