From 65f546a14fbc0438c051b4243f71abd2206a7307 Mon Sep 17 00:00:00 2001 From: Sandrine Bailleux Date: Thu, 28 Nov 2013 09:43:06 +0000 Subject: Properly initialise the C runtime environment This patch makes sure the C runtime environment is properly initialised before executing any C code. - Zero-initialise NOBITS sections (e.g. the bss section). - Relocate BL1 data from ROM to RAM. Change-Id: I0da81b417b2f0d1f7ef667cc5131b1e47e22571f --- plat/fvp/bl1_plat_setup.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'plat') diff --git a/plat/fvp/bl1_plat_setup.c b/plat/fvp/bl1_plat_setup.c index 74b79d1..822a100 100644 --- a/plat/fvp/bl1_plat_setup.c +++ b/plat/fvp/bl1_plat_setup.c @@ -42,7 +42,6 @@ ******************************************************************************/ extern unsigned long __COHERENT_RAM_START__; extern unsigned long __COHERENT_RAM_END__; -extern unsigned long __COHERENT_RAM_UNALIGNED_SIZE__; extern unsigned long __BL1_RAM_START__; extern unsigned long __BL1_RAM_END__; @@ -56,8 +55,6 @@ extern unsigned long __BL1_RAM_END__; */ #define BL1_COHERENT_RAM_BASE (unsigned long)(&__COHERENT_RAM_START__) #define BL1_COHERENT_RAM_LIMIT (unsigned long)(&__COHERENT_RAM_END__) -#define BL1_COHERENT_RAM_LENGTH \ - (unsigned long)(&__COHERENT_RAM_UNALIGNED_SIZE__) #define BL1_RAM_BASE (unsigned long)(&__BL1_RAM_START__) #define BL1_RAM_LIMIT (unsigned long)(&__BL1_RAM_END__) @@ -113,13 +110,6 @@ void bl1_early_platform_setup(void) ******************************************************************************/ void bl1_platform_setup(void) { - /* - * This should zero out our coherent stacks as well but we don't care - * as they are not being used right now. - */ - memset((void *) BL1_COHERENT_RAM_BASE, 0, - (size_t) BL1_COHERENT_RAM_LENGTH); - /* Enable and initialize the System level generic timer */ mmio_write_32(SYS_CNTCTL_BASE + CNTCR_OFF, CNTCR_EN); -- cgit v1.2.1