remove dead code from firmware/target/arm/crt0.S, and conditionalise bits of it

make the meizu builds compile with the new crt0.S location


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18776 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Frank Gevaerts 2008-10-11 18:32:17 +00:00
parent e0f8c31216
commit b56b0a37f4
2 changed files with 3 additions and 18 deletions

View file

@ -34,24 +34,11 @@ start:
b reserved_handler
b irq_handler
b fiq_handler
#if CONFIG_CPU==S5L8700
.word 0x43554644 /* DFUC */
#endif
newstart:
msr cpsr_c, #0xd3 /* enter supervisor mode, disable IRQ/FIQ */
#if 0
/* set PWRON to 1 */
ldr r1, =0x3CF00014
ldr r2, [r1]
orr r2, r2, #0x8
str r2, [r1]
ldr r1, =0x3CF00010
ldr r2, [r1]
bic r2, r2, #0xf000
orr r2, r2, #0x1000
str r2, [r1]
#endif
/* Initialise bss section to zero */
ldr r2, =_edata
@ -127,5 +114,3 @@ irq_stack:
fiq_stack:
end:
/*.word 0xA5A5A5A5
.word 0x5A5A5A5A*/

View file

@ -3,7 +3,7 @@
ENTRY(start)
OUTPUT_FORMAT(elf32-bigarm)
OUTPUT_ARCH(arm)
STARTUP(target/arm/s5l8700/crt0.o)
STARTUP(target/arm/crt0.o)
/* DRAMORIG is in fact 0x8000000 but remapped to 0x0 */
#define DRAMORIG 0x0