scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

_setcontext.s (231B)


      1 
      2 	.text
      3 	.globl	_Exit
      4 	.globl	_setcontext
      5 
      6 _setcontext:
      7 	movq	%r15,%rdi
      8 	movq	$0x134,%rax
      9 	syscall
     10 
     11 	# Something was wrong, finish the program. We can't call
     12 	# abort here because it could generate a loop
     13 	movq	$-1,%rdi
     14 	jmp	_Exit