do not edit — generated by btf.
git.druid.rocksindexdruid520chargesrc/netbsd-start.s

src/netbsd-start.s


.section .text
.globl _start
.type _start, @function
_start:
	xorq %rbp, %rbp # frame ptr (%rbp) = null. marks stack bottom.
 
	movq (%rsp), %rdi # argc = first 4 bytes of stack.
	leaq 8(%rsp), %rsi # argv = address of first arg ptr.
 
	call main
 
	movl %eax, %edi # status = ret val.
	movl $1, %eax # SYS_exit = 1.
	syscall
 
	hlt # if syscall fails hang.
powered by btf.