summaryrefslogtreecommitdiff
path: root/src/signal/or1k/sigsetjmp.s
blob: b9bcdae1db3bc7e8627a91782acbe9910961238c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
.global sigsetjmp
.global __sigsetjmp
.type sigsetjmp,@function
.type __sigsetjmp,@function
sigsetjmp:
__sigsetjmp:
	l.sfeq	r4, r0
.hidden ___setjmp
	l.bf	___setjmp

	l.sw    52(r3), r9
	l.sw    52+4+8(r3), r20

	l.jal	___setjmp
	 l.ori   r20, r3, 0

	l.ori r4, r11, 0
	l.ori r3, r20, 0

	l.lwz   r9, 52(r3)

.hidden __sigsetjmp_tail
	l.j	__sigsetjmp_tail
	 l.lwz   r20, 52+4+8(r3)