_start now uses mx_exit() to terminate
This commit is contained in:
@@ -99,7 +99,7 @@ add_custom_target(local-root
|
|||||||
${CMAKE_CURRENT_BINARY_DIR}
|
${CMAKE_CURRENT_BINARY_DIR}
|
||||||
${platform} ${machine})
|
${platform} ${machine})
|
||||||
|
|
||||||
framework_add_dependencies(Photon local-root)
|
framework_add_dependencies(Photon local-root crt)
|
||||||
|
|
||||||
add_custom_command(TARGET Photon POST_BUILD
|
add_custom_command(TARGET Photon POST_BUILD
|
||||||
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/scripts/add-framework-crt.sh
|
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/scripts/add-framework-crt.sh
|
||||||
|
|||||||
@@ -8,10 +8,10 @@
|
|||||||
.type main, @function
|
.type main, @function
|
||||||
|
|
||||||
_start:
|
_start:
|
||||||
pop %rdi
|
|
||||||
mov %rsp, %rsi
|
mov %rsp, %rsi
|
||||||
andq $-16, %rsp
|
andq $-16, %rsp
|
||||||
call __crt_init
|
call __crt_init
|
||||||
movq %rax, %rdi
|
movq %rax, %rdi
|
||||||
movq $60, %rax
|
movq $2, %rsi
|
||||||
|
movq $1, %rax
|
||||||
syscall
|
syscall
|
||||||
|
|||||||
Reference in New Issue
Block a user