libk  start.x86.lin.64.s at [56e588d048]

File kcore/start.x86.lin.64.s artifact fc26b36617 part of check-in 56e588d048


; vim: ft=nasm
bits 64
%include "../arch/x86.lin.64.s"
global _start
extern _boot
extern entry;

_start:
	mov rbp, rsp
	mov rdi, [rbp + 0] ; argc
	lea rsi, [rbp + 8] ; argv

	call _boot;

	mov sys.reg.1, sys.reg.ret
	mov sys.reg.0, sys.exit
	sys.call