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

* Makefile.am, start/start.S, startup/linkcmds: Use top level shared
	bsp_get_work_area() implementation.
This commit is contained in:
Joel Sherrill
2008-09-16 22:16:06 +00:00
parent b400277a4c
commit ec2ae9fa87
4 changed files with 13 additions and 8 deletions

View File

@@ -1,3 +1,8 @@
2008-09-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, start/start.S, startup/linkcmds: Use top level shared
bsp_get_work_area() implementation.
2008-09-16 Joel Sherrill <joel.sherrill@oarcorp.com> 2008-09-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, configure.ac, startup/bspstart.c: Add use of * Makefile.am, configure.ac, startup/bspstart.c: Add use of

View File

@@ -27,7 +27,7 @@ dist_project_lib_DATA += startup/linkcmds
startup_SOURCES = startup/bspclean.c ../../shared/bsppredriverhook.c \ startup_SOURCES = startup/bspclean.c ../../shared/bsppredriverhook.c \
../../shared/bsplibc.c ../../shared/bsppost.c \ ../../shared/bsplibc.c ../../shared/bsppost.c \
../../shared/bsppretaskinghook.c ../../m68k/shared/m68kbspgetworkarea.c \ ../../shared/bsppretaskinghook.c ../../shared/bspgetworkarea.c \
startup/init52235.c startup/bspstart.c startup/cfinit.c\ startup/init52235.c startup/bspstart.c startup/cfinit.c\
../../shared/bootcard.c ../../shared/sbrk.c ../../m68k/shared/setvec.c \ ../../shared/bootcard.c ../../shared/sbrk.c ../../m68k/shared/setvec.c \
../../shared/gnatinstallhandler.c ../../shared/gnatinstallhandler.c

View File

@@ -355,7 +355,7 @@ SYM(start):
move.l d1, d7 move.l d1, d7
/* Initialize RAMBAR: locate SRAM and validate it */ /* Initialize RAMBAR: locate SRAM and validate it */
move.l #_RamBase, d0 move.l #RamBase, d0
add.l #0x21, d0 add.l #0x21, d0
movec d0, %rambar movec d0, %rambar
@@ -405,7 +405,7 @@ _change_flashbar:
* If running in SRAM, change_flashbar should not be executed * If running in SRAM, change_flashbar should not be executed
*/ */
move.l #_RamBase, a0 move.l #RamBase, a0
/* Code "move.l #(__FLASH + 0x61),d0" into SRAM */ /* Code "move.l #(__FLASH + 0x61),d0" into SRAM */
move.w #0x203C, d0 move.w #0x203C, d0
@@ -425,7 +425,7 @@ _change_flashbar:
move.l d0, (a0)+ move.l d0, (a0)+
/* Jump to code segment in internal SRAM */ /* Jump to code segment in internal SRAM */
jmp _RamBase jmp RamBase
END_CODE END_CODE

View File

@@ -15,9 +15,9 @@
/* /*
* Declare some sizes. * Declare some sizes.
*/ */
_RamBase = DEFINED(_RamBase) ? _RamBase : 0x20000000; RamBase = DEFINED(RamBase) ? RamBase : 0x20000000;
_RamSize = DEFINED(_RamSize) ? _RamSize : 32K; RamSize = DEFINED(RamSize) ? RamSize : 32K;
_HeapSize = DEFINED(_HeapSize) ? _HeapSize : 0x0; HeapSize = DEFINED(HeapSize) ? HeapSize : 0x0;
_StackSize = DEFINED(_StackSize) ? _StackSize : 0x400; _StackSize = DEFINED(_StackSize) ? _StackSize : 0x400;
_FlashBase = DEFINED(_FlashBase) ? _FlashBase : 0x00000000; _FlashBase = DEFINED(_FlashBase) ? _FlashBase : 0x00000000;
@@ -158,7 +158,7 @@ SECTIONS
. += _StackSize; . += _StackSize;
. = ALIGN (16); . = ALIGN (16);
PROVIDE(_StackInit = .); PROVIDE(_StackInit = .);
PROVIDE(_WorkspaceBase = .); PROVIDE(WorkAreaBase = .);
} >sram } >sram
/* Stabs debugging sections. */ /* Stabs debugging sections. */