summaryrefslogtreecommitdiff
path: root/src/signal/powerpc/sigsetjmp.s
blob: 152c3fedd7a84ac0dceffcb6cb8ab202d21cd5ee (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
27
	.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

.hidden ___setjmp
	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