Updated mx_process_kill() call in crt0
This commit is contained in:
@@ -43,7 +43,7 @@ file(GLOB photon_libc_crt
|
|||||||
${CMAKE_CURRENT_SOURCE_DIR}/photon/libc/sys/${platform}/machine/${machine}/crt*.s)
|
${CMAKE_CURRENT_SOURCE_DIR}/photon/libc/sys/${platform}/machine/${machine}/crt*.s)
|
||||||
|
|
||||||
add_library(crt OBJECT ${photon_libc_crt})
|
add_library(crt OBJECT ${photon_libc_crt})
|
||||||
target_compile_options(crt PRIVATE -c)
|
target_compile_options(crt PRIVATE -c -ffreestanding -nostdlib)
|
||||||
|
|
||||||
file(GLOB platform_sources
|
file(GLOB platform_sources
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/photon/libc/sys/${platform}/*.c
|
${CMAKE_CURRENT_SOURCE_DIR}/photon/libc/sys/${platform}/*.c
|
||||||
|
|||||||
@@ -11,7 +11,8 @@ _start:
|
|||||||
mov %rsp, %rsi
|
mov %rsp, %rsi
|
||||||
andq $-16, %rsp
|
andq $-16, %rsp
|
||||||
call __crt_init
|
call __crt_init
|
||||||
movq %rax, %rsi
|
movq %rax, %rdx
|
||||||
movq $1, %rdi /* MX_EXIT_ALL_THREADS */
|
movq $1, %rsi /* MX_EXIT_ALL_THREADS */
|
||||||
movq $1, %rax /* mx_exit() */
|
movq $0, %rdi /* MX_NULL_HANDLE */
|
||||||
|
movq $23, %rax /* mx_process_kill() */
|
||||||
syscall
|
syscall
|
||||||
|
|||||||
Reference in New Issue
Block a user