Fixed memory map for tcrest BSP

This commit is contained in:
afpr
2014-04-23 16:15:44 +01:00
parent 0ecdc6aeac
commit d265e9f7e8
3 changed files with 25 additions and 30 deletions

View File

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

View File

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

View File

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