Explorar o código

Merge git://www.denx.de/git/u-boot-ppc4xx

Tom Rini %!s(int64=10) %!d(string=hai) anos
pai
achega
7417e7fdf2
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      arch/powerpc/cpu/ppc4xx/cpu_init.c

+ 3 - 0
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));
 }
 
 /*