libk  exit.fn.x86.lin.64.s at [6479e060a3]

File kcore/exit.fn.x86.lin.64.s artifact 4c49f79d26 part of check-in 6479e060a3


bits 64
%include "../arch/x86.lin.64.s"
%include "../arch/x86.cdecl.64.s"
; vim: ft=nasm

global kio_posix_exit
kio_posix_exit:
	mov sys.reg.1, ccall.reg.0 ;nop - rdi → rdi
	mov sys.reg.0, sys.exit
	sys.call
	; no return