summaryrefslogtreecommitdiff
path: root/src/signal/powerpc/sigsetjmp.s
blob: 78acf5907121a93161d5e33f797fc7ded552c5f2 (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
25
26
	.global sigsetjmp
	.global __sigsetjmp
	.type sigsetjmp,%function
	.type __sigsetjmp,%function
sigsetjmp:
__sigsetjmp:
	cmpwi cr7, 4, 0
	beq- cr7, 1f

	mflr 5
	stw 5, 448(3)
	stw 16, 448+4+8(3)
	mr 16, 3

	bl setjmp

	mr 4, 3
	mr 3, 16
	lwz 5, 448(3)
	mtlr 5
	lwz 16, 448+4+8(3)

.hidden __sigsetjmp_tail
	b __sigsetjmp_tail

1:	b setjmp