summaryrefslogtreecommitdiff
path: root/arch/powerpc/cpu/ppc4xx/cpu_init.c
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2014-11-05 07:12:16 -0500
committerTom Rini <trini@ti.com>2014-11-05 07:12:16 -0500
commit7417e7fdf2481320f1253393f6d560981849c9cb (patch)
tree254c8af880bffa7694591c39e5ab8e080e87be4d /arch/powerpc/cpu/ppc4xx/cpu_init.c
parent2dbbda08b92b006b541a099a3025cac12c6d720e (diff)
parentf73002bc015aa8518a88a98d2e305e8c2868bf50 (diff)
downloadu-boot-imx-7417e7fdf2481320f1253393f6d560981849c9cb.zip
u-boot-imx-7417e7fdf2481320f1253393f6d560981849c9cb.tar.gz
u-boot-imx-7417e7fdf2481320f1253393f6d560981849c9cb.tar.bz2
Merge git://www.denx.de/git/u-boot-ppc4xx
Diffstat (limited to 'arch/powerpc/cpu/ppc4xx/cpu_init.c')
-rw-r--r--arch/powerpc/cpu/ppc4xx/cpu_init.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/cpu/ppc4xx/cpu_init.c b/arch/powerpc/cpu/ppc4xx/cpu_init.c
index 2256123..e5a0e21 100644
--- a/arch/powerpc/cpu/ppc4xx/cpu_init.c
+++ b/arch/powerpc/cpu/ppc4xx/cpu_init.c
@@ -451,6 +451,9 @@ cpu_init_f (void)
#endif /* CONFIG_440SP/SPE || CONFIG_460EX/GT || CONFIG_405EX */
gd = (gd_t *)(CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_GBL_DATA_OFFSET);
+
+ /* Clear initial global data */
+ memset((void *)gd, 0, sizeof(gd_t));
}
/*