Commit 76abfa57817ada6d4119056097cc32610343fd90

Authored by Zhong Hongbo
Committed by Albert ARIBAUD
1 parent c6734261ec

arm: Fixed the offset for the no relocation.

When the u-boot address of destination equal to  __start,
no relocation. relocation offset(r9) = 0.

Signed-off-by: Zhong Hongbo <bocui107@gmail.com>
Tested-by: Stefano Babic <sbabic@denx.de>

Showing 12 changed files with 12 additions and 0 deletions Side-by-side Diff

arch/arm/cpu/arm1136/start.S
... ... @@ -190,6 +190,7 @@
190 190  
191 191 adr r0, _start
192 192 cmp r0, r6
  193 + moveq r9, #0 /* no relocation. relocation offset(r9) = 0 */
193 194 beq clear_bss /* skip relocation */
194 195 mov r1, r6 /* r1 <- scratch for copy_loop */
195 196 ldr r3, _bss_start_ofs
arch/arm/cpu/arm1176/start.S
... ... @@ -252,6 +252,7 @@
252 252  
253 253 adr r0, _start
254 254 cmp r0, r6
  255 + moveq r9, #0 /* no relocation. relocation offset(r9) = 0 */
255 256 beq clear_bss /* skip relocation */
256 257 mov r1, r6 /* r1 <- scratch for copy_loop */
257 258 ldr r3, _bss_start_ofs
arch/arm/cpu/arm920t/start.S
... ... @@ -210,6 +210,7 @@
210 210  
211 211 adr r0, _start
212 212 cmp r0, r6
  213 + moveq r9, #0 /* no relocation. relocation offset(r9) = 0 */
213 214 beq clear_bss /* skip relocation */
214 215 mov r1, r6 /* r1 <- scratch for copy_loop */
215 216 ldr r3, _bss_start_ofs
arch/arm/cpu/arm925t/start.S
... ... @@ -204,6 +204,7 @@
204 204  
205 205 adr r0, _start
206 206 cmp r0, r6
  207 + moveq r9, #0 /* no relocation. relocation offset(r9) = 0 */
207 208 beq clear_bss /* skip relocation */
208 209 mov r1, r6 /* r1 <- scratch for copy_loop */
209 210 ldr r3, _bss_start_ofs
arch/arm/cpu/arm926ejs/start.S
... ... @@ -236,6 +236,7 @@
236 236 adr r0, _start
237 237 sub r9, r6, r0 /* r9 <- relocation offset */
238 238 cmp r0, r6
  239 + moveq r9, #0 /* no relocation. relocation offset(r9) = 0 */
239 240 beq clear_bss /* skip relocation */
240 241 mov r1, r6 /* r1 <- scratch for copy loop */
241 242 ldr r3, _bss_start_ofs
arch/arm/cpu/arm946es/start.S
... ... @@ -175,6 +175,7 @@
175 175  
176 176 adr r0, _start
177 177 cmp r0, r6
  178 + moveq r9, #0 /* no relocation. relocation offset(r9) = 0 */
178 179 beq clear_bss /* skip relocation */
179 180 mov r1, r6 /* r1 <- scratch for copy_loop */
180 181 ldr r3, _bss_start_ofs
arch/arm/cpu/arm_intcm/start.S
... ... @@ -171,6 +171,7 @@
171 171  
172 172 adr r0, _start
173 173 cmp r0, r6
  174 + moveq r9, #0 /* no relocation. relocation offset(r9) = 0 */
174 175 beq clear_bss /* skip relocation */
175 176 mov r1, r6 /* r1 <- scratch for copy_loop */
176 177 ldr r3, _bss_start_ofs
arch/arm/cpu/ixp/start.S
... ... @@ -273,6 +273,7 @@
273 273  
274 274 adr r0, _start
275 275 cmp r0, r6
  276 + moveq r9, #0 /* no relocation. relocation offset(r9) = 0 */
276 277 beq clear_bss /* skip relocation */
277 278 mov r1, r6 /* r1 <- scratch for copy_loop */
278 279 ldr r3, _bss_start_ofs
arch/arm/cpu/lh7a40x/start.S
... ... @@ -184,6 +184,7 @@
184 184  
185 185 adr r0, _start
186 186 cmp r0, r6
  187 + moveq r9, #0 /* no relocation. relocation offset(r9) = 0 */
187 188 beq clear_bss /* skip relocation */
188 189 mov r1, r6 /* r1 <- scratch for copy_loop */
189 190 ldr r3, _bss_start_ofs
arch/arm/cpu/pxa/start.S
... ... @@ -197,6 +197,7 @@
197 197  
198 198 adr r0, _start
199 199 cmp r0, r6
  200 + moveq r9, #0 /* no relocation. relocation offset(r9) = 0 */
200 201 beq clear_bss /* skip relocation */
201 202 mov r1, r6 /* r1 <- scratch for copy_loop */
202 203 ldr r3, _bss_start_ofs
arch/arm/cpu/s3c44b0/start.S
... ... @@ -156,6 +156,7 @@
156 156  
157 157 adr r0, _start
158 158 cmp r0, r6
  159 + moveq r9, #0 /* no relocation. relocation offset(r9) = 0 */
159 160 beq clear_bss /* skip relocation */
160 161 mov r1, r6 /* r1 <- scratch for copy_loop */
161 162 ldr r3, _bss_start_ofs
arch/arm/cpu/sa1100/start.S
... ... @@ -160,6 +160,7 @@
160 160  
161 161 adr r0, _start
162 162 cmp r0, r6
  163 + moveq r9, #0 /* no relocation. relocation offset(r9) = 0 */
163 164 beq clear_bss /* skip relocation */
164 165 mov r1, r6 /* r1 <- scratch for copy_loop */
165 166 ldr r3, _bss_start_ofs