[rtems commit] bsp/csb336: Fix MMU _ttbl_base location to not overlap with exception vectors.

Sebastian Huber sebh at rtems.org
Fri Aug 9 06:56:18 UTC 2013


Module:    rtems
Branch:    master
Commit:    e4b16ea919b97571290b54964f3ec8c2512105cf
Changeset: http://git.rtems.org/rtems/commit/?id=e4b16ea919b97571290b54964f3ec8c2512105cf

Author:    Pavel Pisa <ppisa at pikron.com>
Date:      Fri Aug  9 01:21:15 2013 +0200

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 <ppisa at pikron.com>

---

 c/src/lib/libbsp/arm/csb336/startup/linkcmds |    7 ++++---
 1 files 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 0e13a9c..040619a 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);




More information about the vc mailing list