mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-09 12:13:00 -04:00
ARM: */start.S: code cleanup
Remove the useless code from start.S Signed-off-by: Jason Liu <r64343@freescale.com> Tested-by: Andreas Bießmann <andreas.devel@googlemail.com>
This commit is contained in:
parent
3c0659b535
commit
386ad72637
@ -196,7 +196,6 @@ stack_setup:
|
|||||||
cmp r0, r6
|
cmp r0, r6
|
||||||
beq clear_bss /* skip relocation */
|
beq clear_bss /* skip relocation */
|
||||||
mov r1, r6 /* r1 <- scratch for copy_loop */
|
mov r1, r6 /* r1 <- scratch for copy_loop */
|
||||||
ldr r2, _TEXT_BASE
|
|
||||||
ldr r3, _bss_start_ofs
|
ldr r3, _bss_start_ofs
|
||||||
add r2, r0, r3 /* r2 <- source end address */
|
add r2, r0, r3 /* r2 <- source end address */
|
||||||
|
|
||||||
@ -251,7 +250,6 @@ clear_bss:
|
|||||||
#ifndef CONFIG_PRELOADER
|
#ifndef CONFIG_PRELOADER
|
||||||
ldr r0, _bss_start_ofs
|
ldr r0, _bss_start_ofs
|
||||||
ldr r1, _bss_end_ofs
|
ldr r1, _bss_end_ofs
|
||||||
ldr r3, _TEXT_BASE /* Text base */
|
|
||||||
mov r4, r6 /* reloc addr */
|
mov r4, r6 /* reloc addr */
|
||||||
add r0, r0, r4
|
add r0, r0, r4
|
||||||
add r1, r1, r4
|
add r1, r1, r4
|
||||||
|
@ -250,7 +250,6 @@ stack_setup:
|
|||||||
cmp r0, r6
|
cmp r0, r6
|
||||||
beq clear_bss /* skip relocation */
|
beq clear_bss /* skip relocation */
|
||||||
mov r1, r6 /* r1 <- scratch for copy_loop */
|
mov r1, r6 /* r1 <- scratch for copy_loop */
|
||||||
ldr r2, _TEXT_BASE
|
|
||||||
ldr r3, _bss_start_ofs
|
ldr r3, _bss_start_ofs
|
||||||
add r2, r0, r3 /* r2 <- source end address */
|
add r2, r0, r3 /* r2 <- source end address */
|
||||||
|
|
||||||
@ -343,7 +342,6 @@ clear_bss:
|
|||||||
#ifndef CONFIG_PRELOADER
|
#ifndef CONFIG_PRELOADER
|
||||||
ldr r0, _bss_start_ofs
|
ldr r0, _bss_start_ofs
|
||||||
ldr r1, _bss_end_ofs
|
ldr r1, _bss_end_ofs
|
||||||
ldr r3, _TEXT_BASE /* Text base */
|
|
||||||
mov r4, r6 /* reloc addr */
|
mov r4, r6 /* reloc addr */
|
||||||
add r0, r0, r4
|
add r0, r0, r4
|
||||||
add r1, r1, r4
|
add r1, r1, r4
|
||||||
|
@ -165,7 +165,6 @@ stack_setup:
|
|||||||
cmp r0, r6
|
cmp r0, r6
|
||||||
beq clear_bss /* skip relocation */
|
beq clear_bss /* skip relocation */
|
||||||
mov r1, r6 /* r1 <- scratch for copy_loop */
|
mov r1, r6 /* r1 <- scratch for copy_loop */
|
||||||
ldr r2, _TEXT_BASE
|
|
||||||
ldr r3, _bss_start_ofs
|
ldr r3, _bss_start_ofs
|
||||||
add r2, r0, r3 /* r2 <- source end address */
|
add r2, r0, r3 /* r2 <- source end address */
|
||||||
|
|
||||||
@ -220,7 +219,6 @@ clear_bss:
|
|||||||
#ifndef CONFIG_PRELOADER
|
#ifndef CONFIG_PRELOADER
|
||||||
ldr r0, _bss_start_ofs
|
ldr r0, _bss_start_ofs
|
||||||
ldr r1, _bss_end_ofs
|
ldr r1, _bss_end_ofs
|
||||||
ldr r3, _TEXT_BASE /* Text base */
|
|
||||||
mov r4, r6 /* reloc addr */
|
mov r4, r6 /* reloc addr */
|
||||||
add r0, r0, r4
|
add r0, r0, r4
|
||||||
add r1, r1, r4
|
add r1, r1, r4
|
||||||
|
@ -211,7 +211,6 @@ stack_setup:
|
|||||||
cmp r0, r6
|
cmp r0, r6
|
||||||
beq clear_bss /* skip relocation */
|
beq clear_bss /* skip relocation */
|
||||||
mov r1, r6 /* r1 <- scratch for copy_loop */
|
mov r1, r6 /* r1 <- scratch for copy_loop */
|
||||||
ldr r2, _TEXT_BASE
|
|
||||||
ldr r3, _bss_start_ofs
|
ldr r3, _bss_start_ofs
|
||||||
add r2, r0, r3 /* r2 <- source end address */
|
add r2, r0, r3 /* r2 <- source end address */
|
||||||
|
|
||||||
@ -266,7 +265,6 @@ clear_bss:
|
|||||||
#ifndef CONFIG_PRELOADER
|
#ifndef CONFIG_PRELOADER
|
||||||
ldr r0, _bss_start_ofs
|
ldr r0, _bss_start_ofs
|
||||||
ldr r1, _bss_end_ofs
|
ldr r1, _bss_end_ofs
|
||||||
ldr r3, _TEXT_BASE /* Text base */
|
|
||||||
mov r4, r6 /* reloc addr */
|
mov r4, r6 /* reloc addr */
|
||||||
add r0, r0, r4
|
add r0, r0, r4
|
||||||
add r1, r1, r4
|
add r1, r1, r4
|
||||||
|
@ -202,7 +202,6 @@ stack_setup:
|
|||||||
cmp r0, r6
|
cmp r0, r6
|
||||||
beq clear_bss /* skip relocation */
|
beq clear_bss /* skip relocation */
|
||||||
mov r1, r6 /* r1 <- scratch for copy_loop */
|
mov r1, r6 /* r1 <- scratch for copy_loop */
|
||||||
ldr r2, _TEXT_BASE
|
|
||||||
ldr r3, _bss_start_ofs
|
ldr r3, _bss_start_ofs
|
||||||
add r2, r0, r3 /* r2 <- source end address */
|
add r2, r0, r3 /* r2 <- source end address */
|
||||||
|
|
||||||
@ -257,7 +256,6 @@ clear_bss:
|
|||||||
#ifndef CONFIG_PRELOADER
|
#ifndef CONFIG_PRELOADER
|
||||||
ldr r0, _bss_start_ofs
|
ldr r0, _bss_start_ofs
|
||||||
ldr r1, _bss_end_ofs
|
ldr r1, _bss_end_ofs
|
||||||
ldr r3, _TEXT_BASE /* Text base */
|
|
||||||
mov r4, r6 /* reloc addr */
|
mov r4, r6 /* reloc addr */
|
||||||
add r0, r0, r4
|
add r0, r0, r4
|
||||||
add r1, r1, r4
|
add r1, r1, r4
|
||||||
|
@ -201,7 +201,6 @@ stack_setup:
|
|||||||
cmp r0, r6
|
cmp r0, r6
|
||||||
beq clear_bss /* skip relocation */
|
beq clear_bss /* skip relocation */
|
||||||
mov r1, r6 /* r1 <- scratch for copy loop */
|
mov r1, r6 /* r1 <- scratch for copy loop */
|
||||||
ldr r2, _TEXT_BASE
|
|
||||||
ldr r3, _bss_start_ofs
|
ldr r3, _bss_start_ofs
|
||||||
add r2, r0, r3 /* r2 <- source end address */
|
add r2, r0, r3 /* r2 <- source end address */
|
||||||
|
|
||||||
@ -256,7 +255,6 @@ clear_bss:
|
|||||||
#ifndef CONFIG_PRELOADER
|
#ifndef CONFIG_PRELOADER
|
||||||
ldr r0, _bss_start_ofs
|
ldr r0, _bss_start_ofs
|
||||||
ldr r1, _bss_end_ofs
|
ldr r1, _bss_end_ofs
|
||||||
ldr r3, _TEXT_BASE /* Text base */
|
|
||||||
mov r4, r6 /* reloc addr */
|
mov r4, r6 /* reloc addr */
|
||||||
add r0, r0, r4
|
add r0, r0, r4
|
||||||
add r1, r1, r4
|
add r1, r1, r4
|
||||||
|
@ -173,7 +173,6 @@ stack_setup:
|
|||||||
cmp r0, r6
|
cmp r0, r6
|
||||||
beq clear_bss /* skip relocation */
|
beq clear_bss /* skip relocation */
|
||||||
mov r1, r6 /* r1 <- scratch for copy_loop */
|
mov r1, r6 /* r1 <- scratch for copy_loop */
|
||||||
ldr r2, _TEXT_BASE
|
|
||||||
ldr r3, _bss_start_ofs
|
ldr r3, _bss_start_ofs
|
||||||
add r2, r0, r3 /* r2 <- source end address */
|
add r2, r0, r3 /* r2 <- source end address */
|
||||||
|
|
||||||
@ -228,7 +227,6 @@ clear_bss:
|
|||||||
#ifndef CONFIG_PRELOADER
|
#ifndef CONFIG_PRELOADER
|
||||||
ldr r0, _bss_start_ofs
|
ldr r0, _bss_start_ofs
|
||||||
ldr r1, _bss_end_ofs
|
ldr r1, _bss_end_ofs
|
||||||
ldr r3, _TEXT_BASE /* Text base */
|
|
||||||
mov r4, r6 /* reloc addr */
|
mov r4, r6 /* reloc addr */
|
||||||
add r0, r0, r4
|
add r0, r0, r4
|
||||||
add r1, r1, r4
|
add r1, r1, r4
|
||||||
|
@ -169,7 +169,6 @@ stack_setup:
|
|||||||
cmp r0, r6
|
cmp r0, r6
|
||||||
beq clear_bss /* skip relocation */
|
beq clear_bss /* skip relocation */
|
||||||
mov r1, r6 /* r1 <- scratch for copy_loop */
|
mov r1, r6 /* r1 <- scratch for copy_loop */
|
||||||
ldr r2, _TEXT_BASE
|
|
||||||
ldr r3, _bss_start_ofs
|
ldr r3, _bss_start_ofs
|
||||||
add r2, r0, r3 /* r2 <- source end address */
|
add r2, r0, r3 /* r2 <- source end address */
|
||||||
|
|
||||||
@ -224,7 +223,6 @@ clear_bss:
|
|||||||
#ifndef CONFIG_PRELOADER
|
#ifndef CONFIG_PRELOADER
|
||||||
ldr r0, _bss_start_ofs
|
ldr r0, _bss_start_ofs
|
||||||
ldr r1, _bss_end_ofs
|
ldr r1, _bss_end_ofs
|
||||||
ldr r3, _TEXT_BASE /* Text base */
|
|
||||||
mov r4, r6 /* reloc addr */
|
mov r4, r6 /* reloc addr */
|
||||||
add r0, r0, r4
|
add r0, r0, r4
|
||||||
add r1, r1, r4
|
add r1, r1, r4
|
||||||
|
@ -171,7 +171,6 @@ stack_setup:
|
|||||||
beq clear_bss /* skip relocation */
|
beq clear_bss /* skip relocation */
|
||||||
#endif
|
#endif
|
||||||
mov r1, r6 /* r1 <- scratch for copy_loop */
|
mov r1, r6 /* r1 <- scratch for copy_loop */
|
||||||
ldr r2, _TEXT_BASE
|
|
||||||
ldr r3, _bss_start_ofs
|
ldr r3, _bss_start_ofs
|
||||||
add r2, r0, r3 /* r2 <- source end address */
|
add r2, r0, r3 /* r2 <- source end address */
|
||||||
|
|
||||||
@ -224,7 +223,6 @@ fixnext:
|
|||||||
clear_bss:
|
clear_bss:
|
||||||
ldr r0, _bss_start_ofs
|
ldr r0, _bss_start_ofs
|
||||||
ldr r1, _bss_end_ofs
|
ldr r1, _bss_end_ofs
|
||||||
ldr r3, _TEXT_BASE /* Text base */
|
|
||||||
mov r4, r6 /* reloc addr */
|
mov r4, r6 /* reloc addr */
|
||||||
add r0, r0, r4
|
add r0, r0, r4
|
||||||
add r1, r1, r4
|
add r1, r1, r4
|
||||||
|
@ -295,7 +295,6 @@ stack_setup:
|
|||||||
cmp r0, r6
|
cmp r0, r6
|
||||||
beq clear_bss /* skip relocation */
|
beq clear_bss /* skip relocation */
|
||||||
mov r1, r6 /* r1 <- scratch for copy_loop */
|
mov r1, r6 /* r1 <- scratch for copy_loop */
|
||||||
ldr r2, _TEXT_BASE
|
|
||||||
ldr r3, _bss_start_ofs
|
ldr r3, _bss_start_ofs
|
||||||
add r2, r0, r3 /* r2 <- source end address */
|
add r2, r0, r3 /* r2 <- source end address */
|
||||||
|
|
||||||
@ -350,7 +349,6 @@ clear_bss:
|
|||||||
#ifndef CONFIG_PRELOADER
|
#ifndef CONFIG_PRELOADER
|
||||||
ldr r0, _bss_start_ofs
|
ldr r0, _bss_start_ofs
|
||||||
ldr r1, _bss_end_ofs
|
ldr r1, _bss_end_ofs
|
||||||
ldr r3, _TEXT_BASE /* Text base */
|
|
||||||
mov r4, r6 /* reloc addr */
|
mov r4, r6 /* reloc addr */
|
||||||
add r0, r0, r4
|
add r0, r0, r4
|
||||||
add r1, r1, r4
|
add r1, r1, r4
|
||||||
|
@ -182,7 +182,6 @@ stack_setup:
|
|||||||
cmp r0, r6
|
cmp r0, r6
|
||||||
beq clear_bss /* skip relocation */
|
beq clear_bss /* skip relocation */
|
||||||
mov r1, r6 /* r1 <- scratch for copy_loop */
|
mov r1, r6 /* r1 <- scratch for copy_loop */
|
||||||
ldr r2, _TEXT_BASE
|
|
||||||
ldr r3, _bss_start_ofs
|
ldr r3, _bss_start_ofs
|
||||||
add r2, r0, r3 /* r2 <- source end address */
|
add r2, r0, r3 /* r2 <- source end address */
|
||||||
|
|
||||||
@ -237,7 +236,6 @@ clear_bss:
|
|||||||
#ifndef CONFIG_PRELOADER
|
#ifndef CONFIG_PRELOADER
|
||||||
ldr r0, _bss_start_ofs
|
ldr r0, _bss_start_ofs
|
||||||
ldr r1, _bss_end_ofs
|
ldr r1, _bss_end_ofs
|
||||||
ldr r3, _TEXT_BASE /* Text base */
|
|
||||||
mov r4, r6 /* reloc addr */
|
mov r4, r6 /* reloc addr */
|
||||||
add r0, r0, r4
|
add r0, r0, r4
|
||||||
add r1, r1, r4
|
add r1, r1, r4
|
||||||
|
@ -247,7 +247,6 @@ stack_setup:
|
|||||||
cmp r0, r6
|
cmp r0, r6
|
||||||
beq clear_bss /* skip relocation */
|
beq clear_bss /* skip relocation */
|
||||||
mov r1, r6 /* r1 <- scratch for copy_loop */
|
mov r1, r6 /* r1 <- scratch for copy_loop */
|
||||||
ldr r2, _TEXT_BASE
|
|
||||||
ldr r3, _bss_start_ofs
|
ldr r3, _bss_start_ofs
|
||||||
add r2, r0, r3 /* r2 <- source end address */
|
add r2, r0, r3 /* r2 <- source end address */
|
||||||
|
|
||||||
@ -304,7 +303,6 @@ clear_bss:
|
|||||||
#ifndef CONFIG_PRELOADER
|
#ifndef CONFIG_PRELOADER
|
||||||
ldr r0, _bss_start_ofs
|
ldr r0, _bss_start_ofs
|
||||||
ldr r1, _bss_end_ofs
|
ldr r1, _bss_end_ofs
|
||||||
ldr r3, _TEXT_BASE /* Text base */
|
|
||||||
mov r4, r6 /* reloc addr */
|
mov r4, r6 /* reloc addr */
|
||||||
add r0, r0, r4
|
add r0, r0, r4
|
||||||
add r1, r1, r4
|
add r1, r1, r4
|
||||||
|
@ -154,7 +154,6 @@ stack_setup:
|
|||||||
cmp r0, r6
|
cmp r0, r6
|
||||||
beq clear_bss /* skip relocation */
|
beq clear_bss /* skip relocation */
|
||||||
mov r1, r6 /* r1 <- scratch for copy_loop */
|
mov r1, r6 /* r1 <- scratch for copy_loop */
|
||||||
ldr r2, _TEXT_BASE
|
|
||||||
ldr r3, _bss_start_ofs
|
ldr r3, _bss_start_ofs
|
||||||
add r2, r0, r3 /* r2 <- source end address */
|
add r2, r0, r3 /* r2 <- source end address */
|
||||||
|
|
||||||
@ -209,7 +208,6 @@ clear_bss:
|
|||||||
#ifndef CONFIG_PRELOADER
|
#ifndef CONFIG_PRELOADER
|
||||||
ldr r0, _bss_start_ofs
|
ldr r0, _bss_start_ofs
|
||||||
ldr r1, _bss_end_ofs
|
ldr r1, _bss_end_ofs
|
||||||
ldr r3, _TEXT_BASE /* Text base */
|
|
||||||
mov r4, r6 /* reloc addr */
|
mov r4, r6 /* reloc addr */
|
||||||
add r0, r0, r4
|
add r0, r0, r4
|
||||||
add r1, r1, r4
|
add r1, r1, r4
|
||||||
|
@ -158,7 +158,6 @@ stack_setup:
|
|||||||
cmp r0, r6
|
cmp r0, r6
|
||||||
beq clear_bss /* skip relocation */
|
beq clear_bss /* skip relocation */
|
||||||
mov r1, r6 /* r1 <- scratch for copy_loop */
|
mov r1, r6 /* r1 <- scratch for copy_loop */
|
||||||
ldr r2, _TEXT_BASE
|
|
||||||
ldr r3, _bss_start_ofs
|
ldr r3, _bss_start_ofs
|
||||||
add r2, r0, r3 /* r2 <- source end address */
|
add r2, r0, r3 /* r2 <- source end address */
|
||||||
|
|
||||||
@ -213,7 +212,6 @@ clear_bss:
|
|||||||
#ifndef CONFIG_PRELOADER
|
#ifndef CONFIG_PRELOADER
|
||||||
ldr r0, _bss_start_ofs
|
ldr r0, _bss_start_ofs
|
||||||
ldr r1, _bss_end_ofs
|
ldr r1, _bss_end_ofs
|
||||||
ldr r3, _TEXT_BASE /* Text base */
|
|
||||||
mov r4, r6 /* reloc addr */
|
mov r4, r6 /* reloc addr */
|
||||||
add r0, r0, r4
|
add r0, r0, r4
|
||||||
add r1, r1, r4
|
add r1, r1, r4
|
||||||
|
Loading…
x
Reference in New Issue
Block a user