[rtems commit] bsp/mpc55xx: Add .sysram section
Sebastian Huber
sebh at rtems.org
Mon Dec 3 12:14:54 UTC 2012
Module: rtems
Branch: master
Commit: 29919ec05b11903c591d64095b6faece3486cb35
Changeset: http://git.rtems.org/rtems/commit/?id=29919ec05b11903c591d64095b6faece3486cb35
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Fri Nov 23 15:12:41 2012 +0100
bsp/mpc55xx: Add .sysram section
---
c/src/lib/libbsp/powerpc/mpc55xxevb/include/bsp.h | 8 ++++++++
.../mpc55xxevb/startup/linkcmds.mpc5674f_ecu508 | 13 ++++++++++++-
.../startup/linkcmds.mpc5674f_ecu508_app | 2 +-
3 files changed, 21 insertions(+), 2 deletions(-)
diff --git a/c/src/lib/libbsp/powerpc/mpc55xxevb/include/bsp.h b/c/src/lib/libbsp/powerpc/mpc55xxevb/include/bsp.h
index 54e4b54..4595d3d 100644
--- a/c/src/lib/libbsp/powerpc/mpc55xxevb/include/bsp.h
+++ b/c/src/lib/libbsp/powerpc/mpc55xxevb/include/bsp.h
@@ -87,6 +87,14 @@ LINKER_SYMBOL(bsp_section_dsram_load_end)
#define BSP_DSRAM_SECTION __attribute__((section(".bsp_dsram")))
+LINKER_SYMBOL(bsp_section_sysram_begin)
+LINKER_SYMBOL(bsp_section_sysram_end)
+LINKER_SYMBOL(bsp_section_sysram_size)
+LINKER_SYMBOL(bsp_section_sysram_load_begin)
+LINKER_SYMBOL(bsp_section_sysram_load_end)
+
+#define BSP_SYSRAM_SECTION __attribute__((section(".bsp_sysram")))
+
typedef enum {
MPC55XX_FATAL_FMPLL_LOCK
} mpc55xx_fatal_code;
diff --git a/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/linkcmds.mpc5674f_ecu508 b/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/linkcmds.mpc5674f_ecu508
index 4693804..1e52a3c 100644
--- a/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/linkcmds.mpc5674f_ecu508
+++ b/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/linkcmds.mpc5674f_ecu508
@@ -1,9 +1,11 @@
MEMORY {
DSROM : ORIGIN = 0x00020000, LENGTH = 64k
+ SYSROM : ORIGIN = 0x00100000, LENGTH = 4k
RAM : ORIGIN = 0x40000000, LENGTH = 240k
NOCACHE : ORIGIN = 0x4003c000, LENGTH = 16k
DSRAM : ORIGIN = 0x20000000, LENGTH = 64k
- RAM_EXT : ORIGIN = 0x20010000, LENGTH = 448k
+ RAM_EXT : ORIGIN = 0x20010000, LENGTH = 444k
+ SYSRAM : ORIGIN = 0x2007f000, LENGTH = 4k
NVRAM : ORIGIN = 0x3ffa0000, LENGTH = 128k
}
@@ -35,6 +37,15 @@ SECTIONS {
bsp_section_dsram_size = bsp_section_dsram_end - bsp_section_dsram_begin;
bsp_section_dsram_load_begin = LOADADDR (.dsram);
bsp_section_dsram_load_end = bsp_section_dsram_load_begin + bsp_section_dsram_size;
+
+ .sysram : {
+ bsp_section_sysram_begin = .;
+ *(SORT(.bsp_sysram*))
+ bsp_section_sysram_end = .;
+ } > SYSRAM AT > SYSROM
+ bsp_section_sysram_size = bsp_section_sysram_end - bsp_section_sysram_begin;
+ bsp_section_sysram_load_begin = LOADADDR (.sysram);
+ bsp_section_sysram_load_end = bsp_section_sysram_load_begin + bsp_section_sysram_size;
}
INCLUDE linkcmds.mpc55xx
diff --git a/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/linkcmds.mpc5674f_ecu508_app b/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/linkcmds.mpc5674f_ecu508_app
index 72c14cd..4b94ac5 100644
--- a/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/linkcmds.mpc5674f_ecu508_app
+++ b/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/linkcmds.mpc5674f_ecu508_app
@@ -1,6 +1,6 @@
MEMORY {
/* Let space for the binary image library header */
- ROM : ORIGIN = 0x00100000, LENGTH = 3M - 4k
+ ROM : ORIGIN = 0x00101000, LENGTH = 3064k
}
REGION_ALIAS ("STARTROM", ROM);
More information about the vc
mailing list