libk  exit.fn.x86.lin.64.s at [a8d93823f1]

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


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