summaryrefslogtreecommitdiffstats
path: root/libc-top-half/musl/src/setjmp/or1k/longjmp.s
blob: 1db9fd93391d2062c9bd6c60a5d10f532f1cef8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
.global _longjmp
.global longjmp
.type   _longjmp,@function
.type   longjmp,@function
_longjmp:
longjmp:
	l.sfeqi	r4, 0
	l.bnf	1f
	 l.addi	r11, r4,0
	l.ori	r11, r0, 1
1:	l.lwz	r1, 0(r3)
	l.lwz	r2, 4(r3)
	l.lwz	r9, 8(r3)
	l.lwz	r10, 12(r3)
	l.lwz	r14, 16(r3)
	l.lwz	r16, 20(r3)
	l.lwz	r18, 24(r3)
	l.lwz	r20, 28(r3)
	l.lwz	r22, 32(r3)
	l.lwz	r24, 36(r3)
	l.lwz	r26, 40(r3)
	l.lwz	r28, 44(r3)
	l.lwz	r30, 48(r3)
	l.jr	r9
	 l.nop