mailing list of musl libc
 help / color / mirror / code / Atom feed
0ad06993c26049a002de4206f53bfe1e34cb91be blob 2625 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
 98
 99
100
101
102
103
 
	.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

	vperm 2,  1, 20, 0 ; stvx 2, 0, 3 ; addi 3, 3, 16
	vperm 2, 20, 21, 0 ; stvx 2, 0, 3 ; addi 3, 3, 16
	vperm 2, 21, 22, 0 ; stvx 2, 0, 3 ; addi 3, 3, 16
	vperm 2, 22, 23, 0 ; stvx 2, 0, 3 ; addi 3, 3, 16
	vperm 2, 23, 24, 0 ; stvx 2, 0, 3 ; addi 3, 3, 16
	vperm 2, 24, 25, 0 ; stvx 2, 0, 3 ; addi 3, 3, 16
	vperm 2, 25, 26, 0 ; stvx 2, 0, 3 ; addi 3, 3, 16
	vperm 2, 26, 27, 0 ; stvx 2, 0, 3 ; addi 3, 3, 16
	vperm 2, 27, 28, 0 ; stvx 2, 0, 3 ; addi 3, 3, 16
	vperm 2, 28, 29, 0 ; stvx 2, 0, 3 ; addi 3, 3, 16
	vperm 2, 29, 30, 0 ; stvx 2, 0, 3 ; addi 3, 3, 16
	vperm 2, 30, 31, 0 ; stvx 2, 0, 3 ; addi 3, 3, 16
	vperm 2, 31, 31, 0 ; stvx 2, 0, 3
#else
	lvsl  0, 0, 3
	vperm 1, 1, 1, 0

	vperm 2, 20,  1, 0 ; stvx 2, 0, 3 ; addi 3, 3, 16
	vperm 2, 21, 20, 0 ; stvx 2, 0, 3 ; addi 3, 3, 16
	vperm 2, 22, 21, 0 ; stvx 2, 0, 3 ; addi 3, 3, 16
	vperm 2, 23, 22, 0 ; stvx 2, 0, 3 ; addi 3, 3, 16
	vperm 2, 24, 23, 0 ; stvx 2, 0, 3 ; addi 3, 3, 16
	vperm 2, 25, 24, 0 ; stvx 2, 0, 3 ; addi 3, 3, 16
	vperm 2, 26, 25, 0 ; stvx 2, 0, 3 ; addi 3, 3, 16
	vperm 2, 27, 26, 0 ; stvx 2, 0, 3 ; addi 3, 3, 16
	vperm 2, 28, 27, 0 ; stvx 2, 0, 3 ; addi 3, 3, 16
	vperm 2, 29, 28, 0 ; stvx 2, 0, 3 ; addi 3, 3, 16
	vperm 2, 30, 29, 0 ; stvx 2, 0, 3 ; addi 3, 3, 16
	vperm 2, 31, 30, 0 ; stvx 2, 0, 3 ; addi 3, 3, 16
	vperm 2, 31, 31, 0 ; stvx 2, 0, 3
#endif

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

solving 0ad0699 ...
found 0ad0699 in https://inbox.vuxu.org/musl/1459747571-9123-1-git-send-email-koorogi@koorogi.info/

applying [1/1] https://inbox.vuxu.org/musl/1459747571-9123-1-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..0ad0699

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

index at:
100644 0ad06993c26049a002de4206f53bfe1e34cb91be	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).