diff options
author | mario.six@gdsys.cc <mario.six@gdsys.cc> | 2017-01-17 08:33:48 +0100 |
---|---|---|
committer | York Sun <york.sun@nxp.com> | 2017-01-31 17:50:35 -0800 |
commit | dbcb2c0e2ba28fc61ab03f57de14f1085e69834f (patch) | |
tree | 4873d3a844459a5fc6dea2ee43494cb7479c543d /arch/powerpc/cpu/mpc83xx/cpu_init.c | |
parent | e80311a5f09967b2c33a772c26983abfbc821140 (diff) |
powerpc: mpc83xx: Enable pre-relocation malloc
To enable DM on MPC83xx, we need pre-relocation malloc, which is
implemented in this patch.
Signed-off-by: Mario Six <mario.six@gdsys.cc>
[York S: Fixed compiling warning for unused variable 'i']
Reviewed-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'arch/powerpc/cpu/mpc83xx/cpu_init.c')
-rw-r--r-- | arch/powerpc/cpu/mpc83xx/cpu_init.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/powerpc/cpu/mpc83xx/cpu_init.c b/arch/powerpc/cpu/mpc83xx/cpu_init.c index f911275b25..3a0916bdbf 100644 --- a/arch/powerpc/cpu/mpc83xx/cpu_init.c +++ b/arch/powerpc/cpu/mpc83xx/cpu_init.c @@ -205,8 +205,7 @@ void cpu_init_f (volatile immap_t * im) /* Pointer is writable since we allocated a register for it */ gd = (gd_t *) (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_GBL_DATA_OFFSET); - /* Clear initial global data */ - memset ((void *) gd, 0, sizeof (gd_t)); + /* global data region was cleared in start.S */ /* system performance tweaking */ clrsetbits_be32(&im->arbiter.acr, acr_mask, acr_val); |