summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/m68k/uC5282/startup/bspstart.c
diff options
context:
space:
mode:
authorEric Norum <WENorum@lbl.gov>2008-05-16 21:55:13 +0000
committerEric Norum <WENorum@lbl.gov>2008-05-16 21:55:13 +0000
commit60f4b6e98b11b9e16317b8cae93e3e7e58407876 (patch)
tree4631a13b816657b94620631105e5be5fa88c939e /c/src/lib/libbsp/m68k/uC5282/startup/bspstart.c
parent2008-05-16 Till Straumann <strauman@slac.stanford.edu> (diff)
downloadrtems-60f4b6e98b11b9e16317b8cae93e3e7e58407876.tar.bz2
Use shared version of bootstrap to set up workspace.
Diffstat (limited to 'c/src/lib/libbsp/m68k/uC5282/startup/bspstart.c')
-rw-r--r--c/src/lib/libbsp/m68k/uC5282/startup/bspstart.c28
1 files changed, 4 insertions, 24 deletions
diff --git a/c/src/lib/libbsp/m68k/uC5282/startup/bspstart.c b/c/src/lib/libbsp/m68k/uC5282/startup/bspstart.c
index ebbda06d6e..cc4ed30f67 100644
--- a/c/src/lib/libbsp/m68k/uC5282/startup/bspstart.c
+++ b/c/src/lib/libbsp/m68k/uC5282/startup/bspstart.c
@@ -227,34 +227,14 @@ static void handler(int pc)
void bsp_start( void )
{
int i;
- extern char _WorkspaceBase[];
extern char _RamBase[], _RamSize[];
- extern unsigned long _M68k_Ramsize;
-
- _M68k_Ramsize = (unsigned long)_RamSize; /* RAM size set in linker script */
-
- /*
- * Allocate the memory for the RTEMS Work Space. This can come from
- * a variety of places: hard coded address, malloc'ed from outside
- * RTEMS world (e.g. simulator or primitive memory manager), or (as
- * typically done by stock BSPs) by subtracting the required amount
- * of work space from the last physical address on the CPU board.
- */
-
- /*
- * Set up default exception handler
- */
- for (i = 2 ; i < 256 ; i++)
- if (i != (32+2)) /* Catch all but bootrom system calls */
- *((void (**)(int))(i * 4)) = handler;
/*
- * Need to "allocate" the memory for the RTEMS Workspace and
- * tell the RTEMS configuration where it is. This memory is
- * not malloc'ed. It is just "pulled from the air".
+ * Set up default exception handler
*/
-
- Configuration.work_space_start = (void *)_WorkspaceBase;
+ for (i = 2 ; i < 256 ; i++)
+ if (i != (32+2)) /* Catch all but bootrom system calls */
+ *((void (**)(int))(i * 4)) = handler;
/*
* Invalidate the cache and disable it