From e4b16ea919b97571290b54964f3ec8c2512105cf Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Fri, 9 Aug 2013 01:21:15 +0200 Subject: bsp/csb336: Fix MMU _ttbl_base location to not overlap with exception vectors. The initial region (64 bytes) of SDRAM RTEMS image is remapped to provide overlay of the initial/ROM exceptions table. This area cannot be used for MMU mapping table. Different correctly aligned block has to be used for MMU table. Remapping of SDRAM (address 0x08200000) to address 0 is supported only on 1 MB block granularity and that is why SDRAM_VEC area has to be 1 MB aligned too but unused part of remapped region can be freely used for other purposes (as MMU tables). Signed-off-by: Pavel Pisa --- c/src/lib/libbsp/arm/csb336/startup/linkcmds | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/c/src/lib/libbsp/arm/csb336/startup/linkcmds b/c/src/lib/libbsp/arm/csb336/startup/linkcmds index 0e13a9ceac..040619a019 100644 --- a/c/src/lib/libbsp/arm/csb336/startup/linkcmds +++ b/c/src/lib/libbsp/arm/csb336/startup/linkcmds @@ -1,9 +1,10 @@ MEMORY { - SDRAM_MMU : ORIGIN = 0x08200000, LENGTH = 16k - SDRAM : ORIGIN = 0x08204000, LENGTH = 30M - 16k + SDRAM_VEC : ORIGIN = 0x08200000, LENGTH = 16k + SDRAM_MMU : ORIGIN = 0x08204000, LENGTH = 16k + SDRAM : ORIGIN = 0x08208000, LENGTH = 30M - 32k } -REGION_ALIAS ("REGION_START", SDRAM); +REGION_ALIAS ("REGION_START", SDRAM_VEC); REGION_ALIAS ("REGION_VECTOR", SDRAM); REGION_ALIAS ("REGION_TEXT", SDRAM); REGION_ALIAS ("REGION_TEXT_LOAD", SDRAM); -- cgit v1.2.3