From: Pavel Pisa <pp...@pikron.com>

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 <pp...@pikron.com>
---
 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 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);
-- 
1.7.10.4
-- 
_______________________________________________
rtems-devel mailing list
rtems-devel@rtems.org
http://www.rtems.org/mailman/listinfo/rtems-devel

Reply via email to