libk  exit.fn.x86.lin.32.s at [5c1200e1a8]

File legacy/exit.fn.x86.lin.32.s artifact 4c4a17d7b6 part of check-in 5c1200e1a8


bits 32
%include "../arch/x86.lin.32.s"
; vim: ft=nasm
global kio_posix_exit

kio_posix_exit:
	mov sys.reg.0, sys.call.exit
	mov sys.reg.1, [esp + 4] ; first C int argument
	sys.call
	; does not return