lib: add libc and micro libc
This commit is contained in:
16
lib/libc/runtime/x86_64/crt0.s
Normal file
16
lib/libc/runtime/x86_64/crt0.s
Normal file
@@ -0,0 +1,16 @@
|
||||
.code64
|
||||
|
||||
.global _start
|
||||
.type _start, @function
|
||||
|
||||
.extern main
|
||||
.type main, @function
|
||||
|
||||
_start:
|
||||
# Args (as provided by the ABI)
|
||||
# %rdi: int argc
|
||||
# %rsi: const char **argv
|
||||
# %rdx: kern_handle_t task
|
||||
# %rcx: kern_handle_t address_space
|
||||
call main
|
||||
1: jmp 1b
|
||||
Reference in New Issue
Block a user