summaryrefslogtreecommitdiffstats
path: root/libc-top-half/musl/src/signal/s390x/sigsetjmp.s
blob: 41b1bd9a16835c2df02266f65f72e70eae1ffbfe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
	.global sigsetjmp
	.global __sigsetjmp
	.type sigsetjmp,%function
	.type __sigsetjmp,%function
	.hidden ___setjmp
sigsetjmp:
__sigsetjmp:
	ltgr  %r3, %r3
	jz    ___setjmp

	stg   %r14, 18*8(%r2)
	stg   %r6,  20*8(%r2)
	lgr   %r6,  %r2

	brasl %r14, ___setjmp

	lgr   %r3,  %r2
	lgr   %r2,  %r6
	lg    %r14, 18*8(%r2)
	lg    %r6,  20*8(%r2)

.hidden __sigsetjmp_tail
	jg __sigsetjmp_tail