meta: move photon/libc to root
This commit is contained in:
18
libc/sys/horizon/machine/x86_64/crt0.s
Normal file
18
libc/sys/horizon/machine/x86_64/crt0.s
Normal file
@@ -0,0 +1,18 @@
|
||||
.global _start
|
||||
.type _start, @function
|
||||
|
||||
.extern __crt_init
|
||||
.type __crt_init, @function
|
||||
|
||||
.extern main
|
||||
.type main, @function
|
||||
|
||||
_start:
|
||||
# Magenta aligns the stack to a page boundry and subtracts 8.
|
||||
# Add 8 to restore 16-byte alignment
|
||||
add $8, %rsp
|
||||
call __crt_init
|
||||
|
||||
# unreachable; __crt_init() will call mx_task_kill()
|
||||
.loop:
|
||||
jmp .loop
|
||||
Reference in New Issue
Block a user