shithub: mc

ref: 6df84aac3adcbcc21c64312472347634d8237dc3
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