shithub: mc

ref: a95ecb2c29fc0bd5baaef7725b0ee00a9f5a4b03
dir: /syscall-osx.s/

View raw version
.globl _std$syscall
_std$syscall:
        popq %rcx	/* return address */
	popq %rax       /* call num */
	pushq %rcx
        syscall
	pushq %rcx	/* put the return address back */
	ret