mailing list of musl libc
 help / color / mirror / code / Atom feed
ab7fafa32a39f7ae138af11ee5feb0b0590bf013 blob 1743 bytes (raw)

 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
 
	.global ___setjmp
	.hidden ___setjmp
	.global __setjmp
	.global _setjmp
	.global setjmp
	.type   __setjmp,@function
	.type   _setjmp,@function
	.type   setjmp,@function
___setjmp:
__setjmp:
_setjmp:
setjmp:
	# 0) store IP into 0, then into the jmpbuf pointed to by r3 (first arg)
	mflr  0
	std   0,  0*8(3)
	# 1) store cr
	mfcr  0
	std   0,  1*8(3)
	# 2) store r1-r2 (SP and TOC)
	std   1,  2*8(3)
	std   2,  3*8(3)
	# 3) store r14-31
	std  14,  4*8(3)
	std  15,  5*8(3)
	std  16,  6*8(3)
	std  17,  7*8(3)
	std  18,  8*8(3)
	std  19,  9*8(3)
	std  20, 10*8(3)
	std  21, 11*8(3)
	std  22, 12*8(3)
	std  23, 13*8(3)
	std  24, 14*8(3)
	std  25, 15*8(3)
	std  26, 16*8(3)
	std  27, 17*8(3)
	std  28, 18*8(3)
	std  29, 19*8(3)
	std  30, 20*8(3)
	std  31, 21*8(3)
	# 4) store floating point registers f14-f31
	stfd 14, 22*8(3)
	stfd 15, 23*8(3)
	stfd 16, 24*8(3)
	stfd 17, 25*8(3)
	stfd 18, 26*8(3)
	stfd 19, 27*8(3)
	stfd 20, 28*8(3)
	stfd 21, 29*8(3)
	stfd 22, 30*8(3)
	stfd 23, 31*8(3)
	stfd 24, 32*8(3)
	stfd 25, 33*8(3)
	stfd 26, 34*8(3)
	stfd 27, 35*8(3)
	stfd 28, 36*8(3)
	stfd 29, 37*8(3)
	stfd 30, 38*8(3)
	stfd 31, 39*8(3)

	# 5) store vector registers v20-v31
	addi  3, 3, 40*8
	lvx   1, 0, 3

#if __BIG_ENDIAN__
	lvsr  0, 0, 3
	vperm 1, 1, 1, 0
#define save_vr(prev,cur) \
	vperm 2, prev, cur, 0; \
	stvx  2, 0, 3;         \
	addi  3, 3, 16
#else
	lvsl  0, 0, 3
	vperm 1, 1, 1, 0
#define save_vr(prev,cur) \
	vperm 2, cur, prev, 0; \
	stvx  2, 0, 3;         \
	addi  3, 3, 16
#endif

	save_vr( 1, 20)
	save_vr(20, 21)
	save_vr(21, 22)
	save_vr(22, 23)
	save_vr(23, 24)
	save_vr(24, 25)
	save_vr(25, 26)
	save_vr(26, 27)
	save_vr(27, 28)
	save_vr(28, 29)
	save_vr(29, 30)
	save_vr(30, 31)
	save_vr(31, 31)

	# 6) return 0
	li 3, 0
	blr
debug log:

solving ab7fafa ...
found ab7fafa in https://inbox.vuxu.org/musl/1459113619-24090-3-git-send-email-koorogi@koorogi.info/

applying [1/1] https://inbox.vuxu.org/musl/1459113619-24090-3-git-send-email-koorogi@koorogi.info/
diff --git a/src/setjmp/powerpc64/setjmp.S b/src/setjmp/powerpc64/setjmp.S
new file mode 100644
index 0000000..ab7fafa

Checking patch src/setjmp/powerpc64/setjmp.S...
Applied patch src/setjmp/powerpc64/setjmp.S cleanly.

index at:
100644 ab7fafa32a39f7ae138af11ee5feb0b0590bf013	src/setjmp/powerpc64/setjmp.S

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).