_start now uses mx_exit() to terminate

This commit is contained in:
Max Wash
2020-07-14 19:02:29 +01:00
parent 72e37aa13a
commit a614cfa25c
2 changed files with 3 additions and 3 deletions

View File

@@ -99,7 +99,7 @@ add_custom_target(local-root
${CMAKE_CURRENT_BINARY_DIR}
${platform} ${machine})
framework_add_dependencies(Photon local-root)
framework_add_dependencies(Photon local-root crt)
add_custom_command(TARGET Photon POST_BUILD
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/scripts/add-framework-crt.sh

View File

@@ -8,10 +8,10 @@
.type main, @function
_start:
pop %rdi
mov %rsp, %rsi
andq $-16, %rsp
call __crt_init
movq %rax, %rdi
movq $60, %rax
movq $2, %rsi
movq $1, %rax
syscall