mpc85xx: Switch to setting the initial stack pointer more clearly
authorTom Rini <trini@konsulko.com>
Tue, 24 May 2022 17:49:56 +0000 (13:49 -0400)
committerTom Rini <trini@konsulko.com>
Mon, 6 Jun 2022 16:09:12 +0000 (12:09 -0400)
Currently, since we know that in the combination of
CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_GBL_DATA_OFFSET all of the "high"
bits are in CONFIG_SYS_INIT_RAM_ADDR and "low" bits are in
CONFIG_SYS_GBL_DATA_OFFSET we reference this separately in start.S, but
added together everywhere else.  For clarity consistency, reference the
combined value here instead.

Signed-off-by: Tom Rini <trini@konsulko.com>
arch/powerpc/cpu/mpc85xx/start.S

index 7a079ed..48f06f5 100644 (file)
@@ -1160,8 +1160,8 @@ _start_cont:
        bne     1b
 
 #if CONFIG_VAL(SYS_MALLOC_F_LEN)
-       lis     r4,(CONFIG_SYS_INIT_RAM_ADDR)@h
-       ori     r4,r4,(CONFIG_SYS_GBL_DATA_OFFSET)@l
+       lis     r4,(CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_GBL_DATA_OFFSET)@h
+       ori     r4,r4,(CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_GBL_DATA_OFFSET)@l
 
        addi    r3,r3,16        /* Pre-relocation malloc area */
        stw     r3,GD_MALLOC_BASE(r4)