1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu/lpc2387: startup.s: remove dead code

Setting up the .data and .bss section happens in arm7_init.c now.
The code was commented out anyway, so just remove it.
Also remove leftover variable declarations that were only used in
the dead code.
This commit is contained in:
Benjamin Valentin 2019-11-25 23:56:18 +01:00 committed by Benjamin Valentin
parent 87d8f29af2
commit ed0f72c856

View File

@ -98,32 +98,6 @@ reset_handler:
msr CPSR_c, #MODE_SYS|I_BIT|F_BIT /* User Mode */
ldr sp, =__stack_usr_start
.section .init2 /* copy .data section (Copy from ROM to RAM) */
.extern _etext
.extern _data
.extern _edata
/*
ldr R1, =_etext
ldr R2, =_data
ldr R3, =_edata
LoopRel: cmp R2, R3
ldrlo R0, [R1], #4
strlo R0, [R2], #4
blo LoopRel
*/
.section .init4 /* Clear .bss section (Zero init) */
.extern __bss_start
.extern __bss_end
/*
mov R0, #0
ldr R1, =__bss_start
ldr R2, =__bss_end
LoopZI: cmp R1, R2
strlo R0, [R1], #4
blo LoopZI
*/
/* Enter the C code */
.section .init9
bl bootloader
b kernel_init