bsp/mpc55xx: Add .sysram section

This commit is contained in:
Sebastian Huber
2012-11-23 15:12:41 +01:00
parent 65ab304bd8
commit 29919ec05b
3 changed files with 21 additions and 2 deletions

View File

@@ -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;

View File

@@ -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

View File

@@ -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);