shithub: mc

ref: 4f029e52084f8b4365aef0788b9890a74c1ec94f
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