summaryrefslogtreecommitdiff
path: root/repo/ceph/44-aarch64-erasure.patch
blob: 421decccba67c4189e55a1d1171ac9fecf036edd (plain)
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
merged as:
https://github.com/ceph/isa-l/commit/bee5180a1517f8b5e70b02fcd66790c623536c5d

--- a/src/isa-l/erasure_code/aarch64/gf_2vect_mad_neon.S
+++ b/src/isa-l/erasure_code/aarch64/gf_2vect_mad_neon.S
@@ -360,7 +360,8 @@
 	sub	x_dest1, x_dest1, x_tmp
 	sub	x_dest2, x_dest2, x_tmp
 
-	ldr	x_const, =const_tbl
+	adrp	x_const, const_tbl
+	add	x_const, x_const, :lo12:const_tbl
 	sub	x_const, x_const, x_tmp
 	ldr	q_tmp, [x_const, #16]
 
@@ -394,7 +395,7 @@
 	mov	w_ret, #1
 	ret
 
-.section .data
+.section .rodata
 .balign 8
 const_tbl:
 	.dword 0x0000000000000000, 0x0000000000000000
--- a/src/isa-l/erasure_code/aarch64/gf_3vect_mad_neon.S
+++ b/src/isa-l/erasure_code/aarch64/gf_3vect_mad_neon.S
@@ -332,7 +332,8 @@
 	sub	x_dest2, x_dest2, x_tmp
 	sub	x_dest3, x_dest3, x_tmp
 
-	ldr	x_const, =const_tbl
+	adrp	x_const, const_tbl
+	add	x_const, x_const, :lo12:const_tbl
 	sub	x_const, x_const, x_tmp
 	ldr	q_tmp, [x_const, #16]
 
@@ -374,7 +375,7 @@
 	mov	w_ret, #1
 	ret
 
-.section .data
+.section .rodata
 .balign 8
 const_tbl:
 	.dword 0x0000000000000000, 0x0000000000000000
--- a/src/isa-l/erasure_code/aarch64/gf_4vect_mad_neon.S
+++ b/src/isa-l/erasure_code/aarch64/gf_4vect_mad_neon.S
@@ -397,7 +397,8 @@
 	sub	x_dest3, x_dest3, x_tmp
 	sub	x_dest4, x_dest4, x_tmp
 
-	ldr	x_const, =const_tbl
+	adrp	x_const, const_tbl
+	add	x_const, x_const, :lo12:const_tbl
 	sub	x_const, x_const, x_tmp
 	ldr	q_tmp, [x_const, #16]
 
@@ -448,7 +449,7 @@
 	mov	w_ret, #1
 	ret
 
-.section .data
+.section .rodata
 .balign 8
 const_tbl:
 	.dword 0x0000000000000000, 0x0000000000000000
--- a/src/isa-l/erasure_code/aarch64/gf_5vect_mad_neon.S
+++ b/src/isa-l/erasure_code/aarch64/gf_5vect_mad_neon.S
@@ -463,7 +463,8 @@
 	sub	x_dest4, x_dest4, x_tmp
 	sub	x_dest5, x_dest5, x_tmp
 
-	ldr	x_const, =const_tbl
+	adrp	x_const, const_tbl
+	add	x_const, x_const, :lo12:const_tbl
 	sub	x_const, x_const, x_tmp
 	ldr	q_tmp, [x_const, #16]
 
@@ -527,7 +528,7 @@
 	mov	w_ret, #1
 	ret
 
-.section .data
+.section .rodata
 .balign 8
 const_tbl:
 	.dword 0x0000000000000000, 0x0000000000000000
--- a/src/isa-l/erasure_code/aarch64/gf_6vect_mad_neon.S
+++ b/src/isa-l/erasure_code/aarch64/gf_6vect_mad_neon.S
@@ -526,7 +526,8 @@
 	sub	x_dest5, x_dest5, x_tmp
 	sub	x_dest6, x_dest6, x_tmp
 
-	ldr	x_const, =const_tbl
+	adrp	x_const, const_tbl
+	add	x_const, x_const, :lo12:const_tbl
 	sub	x_const, x_const, x_tmp
 	ldr	q_tmp, [x_const, #16]
 
@@ -602,7 +603,7 @@
 	mov	w_ret, #1
 	ret
 
-.section .data
+.section .rodata
 .balign 8
 const_tbl:
 	.dword 0x0000000000000000, 0x0000000000000000
--- a/src/isa-l/erasure_code/aarch64/gf_vect_mad_neon.S
+++ b/src/isa-l/erasure_code/aarch64/gf_vect_mad_neon.S
@@ -281,7 +281,8 @@
 	mov	x_src, x_src_end
 	sub	x_dest1, x_dest1, x_tmp
 
-	ldr	x_const, =const_tbl
+	adrp	x_const, const_tbl
+	add	x_const, x_const, :lo12:const_tbl
 	sub	x_const, x_const, x_tmp
 	ldr	q_tmp, [x_const, #16]
 
@@ -307,7 +308,7 @@
 	mov	w_ret, #1
 	ret
 
-.section .data
+.section .rodata
 .balign 8
 const_tbl:
 	.dword 0x0000000000000000, 0x0000000000000000