2008-09-16 Joel Sherrill <joel.sherrill@oarcorp.com>

* Makefile.am, startup/linkcmds, startup/linkcmds.rom,
	startup/linkcmds.rom2ram: Use top level shared bsp_get_work_area()
	implementation.
This commit is contained in:
Joel Sherrill
2008-09-16 20:13:21 +00:00
parent 0682df5868
commit 94bbe3a450
5 changed files with 15 additions and 21 deletions

View File

@@ -1,3 +1,9 @@
2008-09-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, startup/linkcmds, startup/linkcmds.rom,
startup/linkcmds.rom2ram: Use top level shared bsp_get_work_area()
implementation.
2008-09-15 Joel Sherrill <joel.sherrill@oarcorp.com> 2008-09-15 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, configure.ac, include/bsp.h, startup/linkcmds: Use * Makefile.am, configure.ac, include/bsp.h, startup/linkcmds: Use

View File

@@ -30,7 +30,7 @@ dist_project_lib_DATA += startup/linkcmds startup/linkcmds.rom \
startup_SOURCES = ../../shared/bsplibc.c ../../shared/bsppost.c \ startup_SOURCES = ../../shared/bsplibc.c ../../shared/bsppost.c \
../../shared/bsppredriverhook.c ../shared/bspstart.c \ ../../shared/bsppredriverhook.c ../shared/bspstart.c \
../../shared/bsppretaskinghook.c ../shared/bspgetworkarea.c \ ../../shared/bsppretaskinghook.c ../../shared/bspgetworkarea.c \
../../shared/bspclean.c ../../shared/sbrk.c ../../shared/bootcard.c \ ../../shared/bspclean.c ../../shared/sbrk.c ../../shared/bootcard.c \
../../shared/gnatinstallhandler.c ../shared/bsphwinit.c ../../shared/gnatinstallhandler.c ../shared/bsphwinit.c
console_SOURCES = console/console.c ../../shared/dummy_printk_support.c console_SOURCES = console/console.c ../../shared/dummy_printk_support.c

View File

@@ -24,7 +24,7 @@ ENTRY(_start)
_RamBase = DEFINED(_RamBase) ? _RamBase : 0x80000000; _RamBase = DEFINED(_RamBase) ? _RamBase : 0x80000000;
_RamSize = DEFINED(_RamSize) ? _RamSize : 4M; _RamSize = DEFINED(_RamSize) ? _RamSize : 4M;
_HeapSize = DEFINED(_HeapSize) ? _HeapSize : 0x0;
/* /*
* Area assignments: * Area assignments:
@@ -165,10 +165,9 @@ SECTIONS
.stack . : { .stack . : {
. = . + 4096; . = . + 4096;
} }
. = ALIGN(16);
. = ALIGN(16); . = ALIGN(16);
_WorkSpaceStart = . ; _WorkAreaBase = . ;
. = ALIGN(16); . = ALIGN(16);
_CPU_Interrupt_stack_low = . ; _CPU_Interrupt_stack_low = . ;

View File

@@ -24,8 +24,9 @@ ENTRY(_start)
/* Do we need any of these for elf? /* Do we need any of these for elf?
__DYNAMIC = 0; */ __DYNAMIC = 0; */
_RamBase = DEFINED(_RamBase) ? _RamBase : 0x88000000;
_RamSize = DEFINED(_RamSize) ? _RamSize : 8M;
_HeapSize = DEFINED(_HeapSize) ? _HeapSize : (2 * 1024 * 1024); _HeapSize = DEFINED(_HeapSize) ? _HeapSize : (2 * 1024 * 1024);
_WorkspaceSize = DEFINED(_WorkspaceSize) ? _WorkspaceSize : (1024 * 1024);
/* /*
* Area assignments: * Area assignments:
@@ -169,14 +170,7 @@ SECTIONS
} > ram } > ram
. = ALIGN(16); . = ALIGN(16);
_HeapStart = . ; _WorkAreaBase = . ;
. = . + _HeapSize ;
PROVIDE( _HeapEnd = . );
. = ALIGN(16);
_WorkSpaceStart = . ;
. = . + _WorkspaceSize ;
PROVIDE(_WorkSpaceEnd = .);
. = ALIGN(16); . = ALIGN(16);
.stack . : { .stack . : {

View File

@@ -24,8 +24,9 @@ ENTRY(_start)
/* Do we need any of these for elf? /* Do we need any of these for elf?
__DYNAMIC = 0; */ __DYNAMIC = 0; */
_RamBase = DEFINED(_RamBase) ? _RamBase : 0x88000000;
_RamSize = DEFINED(_RamSize) ? _RamSize : 8M;
_HeapSize = DEFINED(_HeapSize) ? _HeapSize : (2 * 1024 * 1024); _HeapSize = DEFINED(_HeapSize) ? _HeapSize : (2 * 1024 * 1024);
_WorkspaceSize = DEFINED(_WorkspaceSize) ? _WorkspaceSize : (1024 * 1024);
/* /*
* Area assignments: * Area assignments:
@@ -172,14 +173,8 @@ SECTIONS
*(.rela.bss .rela.bss.* .rela.gnu.linkonce.b.*) *(.rela.bss .rela.bss.* .rela.gnu.linkonce.b.*)
} >ram } >ram
. = ALIGN(16); . = ALIGN(16);
_HeapStart = . ;
. = . + _HeapSize ;
PROVIDE( _HeapEnd = . );
. = ALIGN(16); _WorkAreaBase = . ;
_WorkSpaceStart = . ;
. = . + _WorkspaceSize ;
PROVIDE(_WorkSpaceEnd = .);
. = ALIGN(16); . = ALIGN(16);
.stack . : { .stack . : {