9os

Experimental kernel using plan9 ideas for embedded device
git clone git://git.simple-cc.org/9os
Log | Files | Refs | README | LICENSE

longjmp.s (276B)


      1 	.file   "longjmp.s"
      2 
      3 	.text
      4 	.globl	longjmp
      5 longjmp:
      6 	ldp x19, x20, [x0,#0]
      7 	ldp x21, x22, [x0,#16]
      8 	ldp x23, x24, [x0,#32]
      9 	ldp x25, x26, [x0,#48]
     10 	ldp x27, x28, [x0,#64]
     11 	ldp x29, x30, [x0,#80]
     12 	ldr x2, [x0,#104]
     13 	mov sp, x2
     14 
     15 	mov x0, x1
     16 	cbnz x1, 1f
     17 	mov x0, #1
     18 1:	br x30