mirror of
https://github.com/t-crest/rtems.git
synced 2025-11-16 04:24:46 +00:00
Fixed memory map for tcrest BSP
This commit is contained in:
@@ -29,8 +29,8 @@ extern "C" {
|
||||
* Information placed in the linkcmds file.
|
||||
*/
|
||||
|
||||
#define RAM_START 0x00020000
|
||||
#define RAM_SIZE 1536K
|
||||
#define RAM_START 0x400
|
||||
#define RAM_SIZE 768K
|
||||
#define RAM_END RAM_START + RAM_SIZE
|
||||
|
||||
#define PROM_START 0x00000000
|
||||
|
||||
@@ -26,8 +26,8 @@ extern "C" {
|
||||
* TODO: replace these by linker symbols
|
||||
*/
|
||||
|
||||
#define _shadow_stack_base 0x00200000
|
||||
#define _stack_cache_base 0x001f0000
|
||||
#define _shadow_stack_base 0x00100000
|
||||
#define _stack_cache_base 0x000f0000
|
||||
|
||||
#ifndef ASM
|
||||
|
||||
|
||||
@@ -8,18 +8,18 @@
|
||||
_PROM_SIZE = 0K;
|
||||
_PROM_START = 0x00000000;
|
||||
|
||||
_RAM_SIZE = 1536K;
|
||||
_RAM_START = 0x00020000;
|
||||
_RAM_SIZE = 768K;
|
||||
_RAM_START = 0x400;
|
||||
|
||||
/* these are the maximum values */
|
||||
|
||||
RamBase = 0x00020000;
|
||||
RamSize = 1536K;
|
||||
RamBase = 0x400;
|
||||
RamSize = 768K;
|
||||
|
||||
MEMORY
|
||||
{
|
||||
rom : ORIGIN = 0x00000000, LENGTH = 0K
|
||||
ram : ORIGIN = 0x00020000, LENGTH = 1536K
|
||||
ram : ORIGIN = 0x400, LENGTH = 768K
|
||||
}
|
||||
|
||||
OUTPUT_ARCH(patmos)
|
||||
@@ -29,21 +29,16 @@ __DYNAMIC = 0;
|
||||
/*
|
||||
* The memory map looks like this:
|
||||
* +--------------------+ <- low memory
|
||||
* | .text ROM |
|
||||
* | _text_start | |
|
||||
* +--------------------+
|
||||
* | .data RAM | initialized data goes here
|
||||
* | _sdata |
|
||||
* | _data_start |
|
||||
* | _edata |
|
||||
* +--------------------+
|
||||
* | .bss RAM |
|
||||
* | __bss_start | start of bss, cleared by crt0
|
||||
* | _end | start of heap, used by sbrk()
|
||||
* +--------------------+
|
||||
* | heap space |
|
||||
* | _ENDHEAP |
|
||||
* | stack space |
|
||||
* | __stack | top of stack
|
||||
* | .text RAM |
|
||||
* | _text_start |
|
||||
* +--------------------+ <- high memory
|
||||
*/
|
||||
|
||||
@@ -68,23 +63,16 @@ RAM_END = _RAM_END;
|
||||
*/
|
||||
SECTIONS
|
||||
{
|
||||
.text 0x00020000 :
|
||||
{
|
||||
text_start = . ;
|
||||
_text_start = . ;
|
||||
*(.text)
|
||||
. = ALIGN (0x10);
|
||||
|
||||
}
|
||||
.data :
|
||||
.data 0x400 :
|
||||
{
|
||||
data_start = . ;
|
||||
_data_start = . ;
|
||||
*(.data)
|
||||
_edata = ALIGN( 0x10 ) ;
|
||||
}
|
||||
.bss :
|
||||
{
|
||||
}
|
||||
|
||||
.bss :
|
||||
{
|
||||
bss_start = . ;
|
||||
_bss_start = . ;
|
||||
*(.bss)
|
||||
@@ -94,5 +82,12 @@ SECTIONS
|
||||
_end = . ;
|
||||
__end = . ;
|
||||
}
|
||||
|
||||
|
||||
.text 0x00020000 :
|
||||
{
|
||||
text_start = . ;
|
||||
_text_start = . ;
|
||||
*(.text)
|
||||
. = ALIGN (0x10);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user