bsps: Add RamEnd to linker command files

Update #3838.
This commit is contained in:
Sebastian Huber
2019-12-14 21:36:09 +01:00
parent c477d927e8
commit ffa1153170
56 changed files with 56 additions and 1 deletions

View File

@@ -359,6 +359,7 @@ SECTIONS {
/* FIXME */
RamBase = ORIGIN (REGION_WORK);
RamSize = LENGTH (REGION_WORK);
RamEnd = RamBase + RamSize;
WorkAreaBase = bsp_section_work_begin;
HeapSize = 0;

View File

@@ -10,6 +10,7 @@ STARTUP(start.o)
*/
_RamBase = DEFINED(_RamBase) ? _RamBase : 0x0;
_RamSize = DEFINED(_RamSize) ? _RamSize : 0x04000000;
_RamEnd = _RamBase + _RamSize;
_HeapSize = DEFINED(_HeapSize) ? _HeapSize : 0x10000;
MEMORY

View File

@@ -14,6 +14,7 @@ _RamBase = DEFINED(_RamBase) ? _RamBase : 0x0;
along with banks for io and flash, so waste some RAM at the end
to free up mmu entries. */
_RamSize = DEFINED(_RamSize) ? _RamSize : 0x03400000;
_RamEnd = _RamBase + _RamSize;
_HeapSize = DEFINED(_HeapSize) ? _HeapSize : 0x0;
MEMORY

View File

@@ -10,6 +10,7 @@ STARTUP(start.o)
*/
_RamBase = DEFINED(_RamBase) ? _RamBase : 0x0;
_RamSize = DEFINED(_RamSize) ? _RamSize : 0x01000000;
_RamEnd = _RamBase + _RamSize;
_HeapSize = DEFINED(_HeapSize) ? _HeapSize : 0x0;
MEMORY

View File

@@ -367,6 +367,7 @@ SECTIONS {
RamBase = ORIGIN (REGION_WORK);
RamSize = LENGTH (REGION_WORK);
RamEnd = RamBase + RamSize;
WorkAreaBase = bsp_section_work_begin;
HeapSize = 0;
}

View File

@@ -11,6 +11,7 @@ STARTUP(start.o)
*/
RamBase = DEFINED(RamBase) ? RamBase : 0x08000000;
RamSize = DEFINED(RamSize) ? RamSize : 32M;
RamEnd = RamBase + RamSize;
HeapSize = DEFINED(HeapSize) ? HeapSize : 2M;
MEMORY {

View File

@@ -11,6 +11,7 @@ STARTUP(start.o)
*/
RamBase = DEFINED(RamBase) ? RamBase : 0x40000000;
RamSize = DEFINED(RamSize) ? RamSize : 128M;
RamEnd = RamBase + RamSize;
HeapSize = DEFINED(HeapSize) ? HeapSize : 92M;
MEMORY {

View File

@@ -15,6 +15,7 @@
*/
RamBase = DEFINED(RamBase) ? RamBase : 0x0;
RamSize = DEFINED(RamSize) ? RamSize : 16M;
RamEnd = RamBase + RamSize;
HeapSize = DEFINED(HeapSize) ? HeapSize : 0;
_VBR = 0x0;

View File

@@ -15,6 +15,7 @@
*/
RamBase = DEFINED(RamBase) ? RamBase : 0x0;
RamSize = DEFINED(RamSize) ? RamSize : 16M;
RamEnd = RamBase + RamSize;
HeapSize = DEFINED(HeapSize) ? HeapSize : 0;
_VBR = 0x0;

View File

@@ -15,6 +15,7 @@
*/
RamBase = DEFINED(RamBase) ? RamBase : 0x0;
RamSize = DEFINED(RamSize) ? RamSize : 16M;
RamEnd = RamBase + RamSize;
HeapSize = DEFINED(HeapSize) ? HeapSize : 0;
_VBR = 0x0;

View File

@@ -14,6 +14,7 @@
HeapSize = DEFINED(HeapSize) ? HeapSize : 0x0;
RamBase = DEFINED(RamBase) ? RamBase : 0x00100000;
RamSize = DEFINED(RamSize) ? RamSize : 31M;
RamEnd = RamBase + RamSize;
/* This is needed for _CPU_ISR_install_vector -
* WARNING: it MUST match BSP_RAMBAR !!!!!!!!!!! */

View File

@@ -20,6 +20,7 @@
*/
RamBase = DEFINED(RamBase) ? RamBase : 0x10000000;
RamSize = DEFINED(RamSize) ? RamSize : 4M;
RamEnd = RamBase + RamSize;
HeapSize = DEFINED(HeapSize) ? HeapSize : 0x0;
/*

View File

@@ -15,6 +15,7 @@
*/
RamBase = DEFINED(RamBase) ? RamBase : 0x0;
RamSize = DEFINED(RamSize) ? RamSize : 64M;
RamEnd = RamBase + RamSize;
HeapSize = DEFINED(HeapSize) ? HeapSize : 0x0;
/*

View File

@@ -19,6 +19,7 @@
*/
RamBase = DEFINED(RamBase) ? RamBase : 0x0;
RamSize = DEFINED(RamSize) ? RamSize : 64M;
RamEnd = RamBase + RamSize;
HeapSize = DEFINED(HeapSize) ? HeapSize : 0x0;
/*

View File

@@ -19,6 +19,7 @@
*/
RamBase = DEFINED(RamBase) ? RamBase : 0x0;
RamSize = DEFINED(RamSize) ? RamSize : 64M;
RamEnd = RamBase + RamSize;
HeapSize = DEFINED(HeapSize) ? HeapSize : 0x0;
/*

View File

@@ -39,6 +39,7 @@ _SYS_CLOCK_FREQUENCY = DEFINED(_SYS_CLOCK_FREQUENCY) ?
HeapSize = DEFINED(HeapSize) ? HeapSize : 0x0;
RamBase = DEFINED(RamBase) ? RamBase : 0x30000000;
RamSize = DEFINED(RamSize) ? RamSize : 0x00100000;
RamEnd = RamBase + RamSize;
/*
* Setup the memory map of the MCF5206eLITE evaluation board

View File

@@ -15,6 +15,7 @@
*/
RamBase = DEFINED(RamBase) ? RamBase : 0x20000000;
RamSize = DEFINED(RamSize) ? RamSize : 32K;
RamEnd = RamBase + RamSize;
HeapSize = DEFINED(HeapSize) ? HeapSize : 0x0;
_FlashBase = DEFINED(_FlashBase) ? _FlashBase : 0x00000000;

View File

@@ -15,6 +15,7 @@
*/
RamBase = DEFINED(RamBase) ? RamBase : 0x20000000;
RamSize = DEFINED(RamSize) ? RamSize : 64K;
RamEnd = RamBase + RamSize;
HeapSize = DEFINED(HeapSize) ? HeapSize : 0x0;
_FlashBase = DEFINED(_FlashBase) ? _FlashBase : 0x00000000;

View File

@@ -22,6 +22,7 @@ MCF5235_BSP_START_FROM_FLASH = 0;
*/
RamBase = DEFINED(RamBase) ? RamBase : 0x0;
RamSize = DEFINED(RamSize) ? RamSize : 16M;
RamEnd = RamBase + RamSize;
HeapSize = DEFINED(HeapSize) ? HeapSize : 0;

View File

@@ -22,6 +22,7 @@ MCF5235_BSP_START_FROM_FLASH = 1;
*/
RamBase = DEFINED(RamBase) ? RamBase : 0x0;
RamSize = DEFINED(RamSize) ? RamSize : 16M;
RamEnd = RamBase + RamSize;
HeapSize = DEFINED(HeapSize) ? HeapSize : 0;

View File

@@ -22,6 +22,7 @@ MCF5235_BSP_START_FROM_FLASH = 0;
*/
RamBase = DEFINED(RamBase) ? RamBase : 0x0;
RamSize = DEFINED(RamSize) ? RamSize : 16M;
RamEnd = RamBase + RamSize;
HeapSize = DEFINED(HeapSize) ? HeapSize : 0;

View File

@@ -18,6 +18,7 @@ _CoreSRamSize = DEFINED(RamSize) ? RamSize : 32K;
RamBase = DEFINED(RamBase) ? RamBase : 0x40000000;
RamSize = DEFINED(RamSize) ? RamSize : 32M;
RamEnd = RamBase + RamSize;
_BootFlashBase = DEFINED(_FlashBase) ? _FlashBase : 0x00000000;
_BootFlashSize = DEFINED(_FlashBase) ? _FlashBase : 2M;

View File

@@ -18,6 +18,7 @@ _CoreSRamSize = DEFINED(RamSize) ? RamSize : 32K;
RamBase = DEFINED(RamBase) ? RamBase : 0x40000000;
RamSize = DEFINED(RamSize) ? RamSize : 32M;
RamEnd = RamBase + RamSize;
_BootFlashBase = DEFINED(_FlashBase) ? _FlashBase : 0x00000000;
_BootFlashSize = DEFINED(_FlashBase) ? _FlashBase : 2M;

View File

@@ -41,7 +41,7 @@ __DYNAMIC = 0;
RomBase = DEFINED(RomBase) ? RomBase : 0x90000;
RamBase = DEFINED(RamBase) ? RamBase : 0x03000;
RamSize = DEFINED(RamSize) ? RamSize : 0x7d000;
_RamEnd = RamBase + RamSize;
RamEnd = RamBase + RamSize;
MEMORY
{

View File

@@ -17,6 +17,7 @@
*/
RamSize = DEFINED(RamSize) ? RamSize : 1M;
RamEnd = RamBase + RamSize;
MEMORY
{

View File

@@ -15,6 +15,7 @@
RamBase = DEFINED(RamBase) ? RamBase : 0x00800000;
RamSize = DEFINED(RamSize) ? RamSize : 4M;
RamEnd = RamBase + RamSize;
MEMORY
{

View File

@@ -267,6 +267,7 @@ SECTIONS {
/* FIXME */
RamBase = ORIGIN (REGION_DATA);
RamSize = LENGTH (REGION_DATA);
RamEnd = RamBase + RamSize;
WorkAreaBase = bsp_section_work_begin;
HeapSize = 0;

View File

@@ -17,6 +17,7 @@
*/
RamBase = DEFINED(RamBase) ? RamBase : 0x0;
RamSize = DEFINED(RamSize) ? RamSize : 16M;
RamEnd = RamBase + RamSize;
HeapSize = DEFINED(HeapSize) ? HeapSize : 0;
_FlashBase = DEFINED(_FlashBase) ? _FlashBase : 0x10000000;
_FlashSize = DEFINED(_FlashSize) ? _FlashSize : 4M ;

View File

@@ -14,6 +14,7 @@ _sdram_size = DEFINED(_sdram_size) ? _sdram_size : 12M;
/* standard items provided by RTEMS linkcmds files */
RamBase = _sdram_base;
RamSize = _sdram_size;
RamEnd = RamBase + RamSize;
HeapSize = DEFINED(HeapSize) ? HeapSize : 0x0;
ENTRY(_start)

View File

@@ -7,6 +7,7 @@
*/
RamBase = DEFINED(RamBase) ? RamBase : 0x80000000;
RamSize = DEFINED(RamSize) ? RamSize : 4M;
RamEnd = RamBase + RamSize;
HeapSize = DEFINED(HeapSize) ? HeapSize : 0x0;
ENTRY(start)

View File

@@ -7,6 +7,7 @@
*/
RamBase = DEFINED(RamBase) ? RamBase : 0x88000000;
RamSize = DEFINED(RamSize) ? RamSize : 4M;
RamEnd = RamBase + RamSize;
HeapSize = DEFINED(HeapSize) ? HeapSize : 0x0;
ENTRY(_start)

View File

@@ -7,6 +7,7 @@
*/
RamBase = DEFINED(RamBase) ? RamBase : 0x80000000;
RamSize = DEFINED(RamSize) ? RamSize : 128M;
RamEnd = RamBase + RamSize;
HeapSize = DEFINED(HeapSize) ? HeapSize : 0x0;
ENTRY(_start)

View File

@@ -7,6 +7,7 @@
*/
RamBase = DEFINED(RamBase) ? RamBase : 0x80000000;
RamSize = DEFINED(RamSize) ? RamSize : 4M;
RamEnd = RamBase + RamSize;
HeapSize = DEFINED(HeapSize) ? HeapSize : 0x0;
ENTRY(start)

View File

@@ -7,6 +7,7 @@
*/
RamBase = DEFINED(RamBase) ? RamBase : 0x80000000;
RamSize = DEFINED(RamSize) ? RamSize : 4M;
RamEnd = RamBase + RamSize;
HeapSize = DEFINED(HeapSize) ? HeapSize : 0x0;
ENTRY(start)

View File

@@ -22,6 +22,7 @@ STARTUP(start.o)
RamBase = DEFINED(RamBase) ? RamBase : 0x00000000;
RamSize = DEFINED(RamSize) ? RamSize : 16M;
RamEnd = RamBase + RamSize;
HeapSize = DEFINED(HeapSize) ? HeapSize : 0x0;
SECTIONS

View File

@@ -23,6 +23,7 @@ DO NOT MODIFY THIS FILE
RamBase = DEFINED(RamBase) ? RamBase : 0x00000000;
RamSize = DEFINED(RamSize) ? RamSize : 0x00800000;
RamEnd = RamBase + RamSize;
HeapSize = DEFINED(HeapSize) ? HeapSize : 0x0;
MEMORY

View File

@@ -310,6 +310,7 @@ SECTIONS {
RamBase = ORIGIN (REGION_WORK);
RamSize = LENGTH (REGION_WORK);
RamEnd = RamBase + RamSize;
WorkAreaBase = bsp_section_work_begin;
HeapSize = 0;
}

View File

@@ -25,6 +25,7 @@ bsp_section_align = 32;
RamBase = bsp_ram_start;
RamSize = bsp_ram_size;
RamEnd = RamBase + RamSize;
HeapSize = DEFINED(HeapSize) ? HeapSize : 0x0;
/*

View File

@@ -17,6 +17,7 @@ EXTERN(__vectors)
RamBase = DEFINED(RamBase) ? RamBase : 0;
RamSize = DEFINED(RamSize) ? RamSize : 256M;
RamEnd = RamBase + RamSize;
HeapSize = DEFINED(HeapSize) ? HeapSize : 0x0;
MEMORY {

View File

@@ -19,6 +19,7 @@ EXTERN(__vectors)
*/
RamBase = DEFINED(RamBase) ? RamBase : 0x0;
RamSize = DEFINED(RamSize) ? RamDiskSize : 0x0800000; /* 8M program ram */
RamEnd = RamBase + RamSize;
HeapSize = DEFINED(HeapSize) ? HeapSize : 0x0;
RamDiskBase = DEFINED(RamDiskBase) ? RamDiskBase : 0x0800000;
RamDiskSize = DEFINED(RamDiskSize) ? RamDiskSize : 0x0800000; /* 8M ram disk */

View File

@@ -396,6 +396,7 @@ SECTIONS {
/* FIXME */
RamBase = ORIGIN (REGION_WORK);
RamSize = LENGTH (REGION_WORK);
RamEnd = RamBase + RamSize;
WorkAreaBase = bsp_section_work_begin;
HeapSize = 0;

View File

@@ -26,6 +26,7 @@ ext_ram_size = 0x00080000; /* size of external RAM */
RamBase = DEFINED(_RamBase) ? RamBase : 0x003F9800;
RamSize = DEFINED(_RamSize) ? RamSize : 0x00486800;
RamEnd = RamBase + RamSize;
HeapSize = DEFINED(_HeapSize) ? HeapSize : 0x0;
SECTIONS

View File

@@ -16,6 +16,7 @@ EXTERN(__vectors)
MsgAreaSize = DEFINED(MsgAreaSize) ? MsgAreaSize : 1M;
RamBase = DEFINED(RamBase) ? RamBase : 0x0;
RamSize = DEFINED(RamSize) ? RamSize : 128M - MsgAreaSize;
RamEnd = RamBase + RamSize;
HeapSize = DEFINED(HeapSize) ? HeapSize : 0; /* 0=Use def */

View File

@@ -16,6 +16,7 @@ EXTERN(__vectors)
MsgAreaSize = DEFINED(MsgAreaSize) ? MsgAreaSize : 1M;
RamBase = DEFINED(RamBase) ? RamBase : 0x0;
RamSize = DEFINED(RamSize) ? RamSize : 2048M - MsgAreaSize;
RamEnd = RamBase + RamSize;
HeapSize = DEFINED(HeapSize) ? HeapSize : 0; /* 0=Use def */

View File

@@ -328,6 +328,7 @@ SECTIONS {
/* FIXME */
RamBase = ORIGIN (REGION_WORK);
RamSize = LENGTH (REGION_WORK);
RamEnd = RamBase + RamSize;
WorkAreaBase = bsp_section_work_begin;
HeapSize = 0;

View File

@@ -32,6 +32,7 @@ STARTUP(start.o)
_RamBase = DEFINED(_RamBase) ? _RamBase : 0x0a040000;
_RamSize = DEFINED(_RamSize) ? _RamSize : 512K;
_RamEnd = _RamBase + _RamSize;
_HeapSize = DEFINED(_HeapSize) ? _HeapSize : 0x0;
MEMORY

View File

@@ -45,6 +45,7 @@ STARTUP(start.o)
_RamBase = DEFINED(_RamBase) ? _RamBase : 0x00440000;
_RamSize = DEFINED(_RamSize) ? _RamSize : 512K;
_RamEnd = _RamBase + _RamSize;
_HeapSize = DEFINED(_HeapSize) ? _HeapSize : 0x0;
MEMORY

View File

@@ -44,6 +44,7 @@ STARTUP(start.o)
/* These assignments load code into SH7045F EVB SRAM for monitor debugging */
_RamBase = DEFINED(_RamBase) ? _RamBase : 0x00440000;
_RamSize = DEFINED(_RamSize) ? _RamSize : 512K;
_RamEnd = _RamBase + _RamSize;
_HeapSize = DEFINED(_HeapSize) ? _HeapSize : 0x0;
MEMORY

View File

@@ -44,6 +44,7 @@ STARTUP(start.o)
/* These asignments represent actual SH7045F EVB architecture */
_RamBase = DEFINED(_RamBase) ? _RamBase : 0x00400000;
_RamSize = DEFINED(_RamSize) ? _RamSize : 0x0008000;
_RamEnd = _RamBase + _RamSize;
_HeapSize = DEFINED(_HeapSize) ? _HeapSize : 0x0;
MEMORY

View File

@@ -24,6 +24,7 @@ STARTUP(start.o)
_RamBase = DEFINED(_RamBase) ? _RamBase : 0x80000000;
_RamSize = DEFINED(_RamSize) ? _RamSize : 4M;
_RamEnd = _RamBase + _RamSize;
_HeapSize = DEFINED(_HeapSize) ? _HeapSize : 0x0;
/*

View File

@@ -26,6 +26,7 @@ STARTUP(start.o)
_RamBase = DEFINED(_RamBase) ? _RamBase : 0x88000000;
_RamSize = DEFINED(_RamSize) ? _RamSize : 8M;
_RamEnd = _RamBase + _RamSize;
_HeapSize = DEFINED(_HeapSize) ? _HeapSize : (2 * 1024 * 1024);
/*

View File

@@ -26,6 +26,7 @@ STARTUP(start.o)
_RamBase = DEFINED(_RamBase) ? _RamBase : 0x88000000;
_RamSize = DEFINED(_RamSize) ? _RamSize : 8M;
_RamEnd = _RamBase + _RamSize;
_HeapSize = DEFINED(_HeapSize) ? _HeapSize : (2 * 1024 * 1024);
/*

View File

@@ -23,6 +23,7 @@ STARTUP(start.o)
_RamBase = DEFINED(_RamBase) ? _RamBase : 0x00000000;
_RamSize = DEFINED(_RamSize) ? _RamSize : 16M;
_RamEnd = _RamBase + _RamSize;
_HeapSize = DEFINED(_HeapSize) ? _HeapSize : 0x0;
MEMORY

View File

@@ -12,6 +12,7 @@
*/
RamBase = DEFINED(RamBase) ? RamBase : 0x0;
RamSize = DEFINED(RamSize) ? RamSize : 4M;
RamEnd = RamBase + RamSize;
HeapSize = DEFINED(HeapSize) ? HeapSize : 1M;
RAM_END = RamBase + RamSize;

View File

@@ -3,6 +3,7 @@
*/
_RamBase = DEFINED(_RamBase) ? _RamBase : 0x100000; /* RAM starts at 1MB */
_RamSize = DEFINED(_RamSize) ? _RamSize : 0x100000; /* default is 1MB */
_RamEnd = _RamBase + _RamSize;
_HeapSize = DEFINED(_HeapSize) ? _HeapSize : 0x0;
/* Default linker script, for normal executables */

View File

@@ -28,6 +28,7 @@ RamBase = DEFINED(RamBase) ? RamBase :
*/
RamSize = DEFINED(RamSize) ? RamSize :
DEFINED(_RamSize) ? _RamSize : 0x40000000;
RamEnd = RamBase + RamSize;
SECTIONS
{