diff --git a/arch/arm/cpu/cpu.c b/arch/arm/cpu/cpu.c index f3d01798f..e2b31edec 100644 --- a/arch/arm/cpu/cpu.c +++ b/arch/arm/cpu/cpu.c @@ -99,7 +99,7 @@ static int cpu_init (void) /* * setup up stacks if necessary */ - IRQ_STACK_START = _armboot_start - CFG_MALLOC_LEN - CFG_GBL_DATA_SIZE - 4; + IRQ_STACK_START = _u_boot_start - CFG_MALLOC_LEN - CFG_GBL_DATA_SIZE - 4; FIQ_STACK_START = IRQ_STACK_START - CONFIG_STACKSIZE_IRQ; return 0; } diff --git a/arch/arm/cpu/start-arm920t.S b/arch/arm/cpu/start-arm920t.S index 1cf239113..ecc505c5e 100644 --- a/arch/arm/cpu/start-arm920t.S +++ b/arch/arm/cpu/start-arm920t.S @@ -74,8 +74,8 @@ _fiq: .word fiq _TEXT_BASE: .word TEXT_BASE -.globl _armboot_start -_armboot_start: +.globl _u_boot_start +_u_boot_start: .word _start _MALLOC_START: @@ -172,7 +172,7 @@ relocate: /* relocate U-Boot to RAM */ cmp r0, r1 /* don't reloc during debug */ beq stack_setup - ldr r2, _armboot_start + ldr r2, _u_boot_start ldr r3, _bss_start sub r2, r3, r2 /* r2 <- size of armboot */ add r2, r0, r2 /* r2 <- source end address */ diff --git a/arch/arm/lib/arm.c b/arch/arm/lib/arm.c index 074960004..0df99d742 100644 --- a/arch/arm/lib/arm.c +++ b/arch/arm/lib/arm.c @@ -2,11 +2,12 @@ #include #include #include +#include int arm_mem_malloc_init(void) { - mem_malloc_init((void *)(_armboot_start - CFG_MALLOC_LEN), - (void *)_armboot_start); + mem_malloc_init((void *)(_u_boot_start - CFG_MALLOC_LEN), + (void *)_u_boot_start); return 0; }