From 89e40d126b55dc7e01f63d0319ee7219740a82e1 Mon Sep 17 00:00:00 2001 From: Max Wash Date: Thu, 16 Jul 2020 17:12:19 +0100 Subject: [PATCH] Fixed incorrect call to mx_exit() in _start --- photon/libc/sys/magenta/machine/x86_64/crt0.s | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/photon/libc/sys/magenta/machine/x86_64/crt0.s b/photon/libc/sys/magenta/machine/x86_64/crt0.s index 4261e9a..90e0b6d 100644 --- a/photon/libc/sys/magenta/machine/x86_64/crt0.s +++ b/photon/libc/sys/magenta/machine/x86_64/crt0.s @@ -11,7 +11,7 @@ _start: mov %rsp, %rsi andq $-16, %rsp call __crt_init - movq %rax, %rdi - movq $2, %rsi - movq $1, %rax + movq %rax, %rsi + movq $1, %rdi /* MX_EXIT_ALL_THREADS */ + movq $1, %rax /* mx_exit() */ syscall