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

* Makefile.am, configure.ac, clock/ckinit.c, startup/linkcmds,
	startup/linkcmds_ROM: Add use of bsp_get_work_area() in its own file
	and rely on BSP Framework to perform more initialization. Remove
	unnecessary includes of rtems/libio.h and rtems/libcsupport.h.
	* startup/bsppredriverhook.c: New file.
This commit is contained in:
Joel Sherrill
2008-09-16 19:03:32 +00:00
parent 9b0c089120
commit 1b0dfdd5a8
7 changed files with 45 additions and 7 deletions

View File

@@ -1,3 +1,11 @@
2008-09-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, configure.ac, clock/ckinit.c, startup/linkcmds,
startup/linkcmds_ROM: Add use of bsp_get_work_area() in its own file
and rely on BSP Framework to perform more initialization. Remove
unnecessary includes of rtems/libio.h and rtems/libcsupport.h.
* startup/bsppredriverhook.c: New file.
2008-09-10 Joel Sherrill <joel.sherrill@oarcorp.com>
* include/bsp.h: Review of all bsp_cleanup() implementations. In this

View File

@@ -30,10 +30,11 @@ project_lib_DATA = start.$(OBJEXT)
dist_project_lib_DATA += startup/linkcmds startup/linkcmds_ROM
startup_SOURCES = startup/start_c.c ../../shared/bsplibc.c \
../../shared/bsppost.c startup/bspstart.c startup/bspclean.c \
../../shared/bootcard.c ../../m68k/shared/m68kpretaskinghook.c \
../../shared/sbrk.c ../../m68k/shared/setvec.c \
../../shared/gnatinstallhandler.c startup/except_vect_332_ROM.S
../../shared/bsppost.c ../../shared/bspstart.c startup/bsppredriverhook.c \
startup/bspclean.c ../../shared/bootcard.c ../../shared/sbrk.c \
../../m68k/shared/setvec.c ../../shared/bsppretaskinghook.c \
../../m68k/shared/m68kbspgetworkarea.c ../../shared/gnatinstallhandler.c \
startup/except_vect_332_ROM.S
clock_SOURCES = clock/ckinit.c
console_SOURCES = console/console.c console/sci.c console/sci.h
spurious_SOURCES = spurious/spinit.c

View File

@@ -19,7 +19,6 @@
#include <stdlib.h>
#include <bsp.h>
#include <rtems/libio.h>
#include <mrm332.h>
#define CLOCK_VECTOR MRM_PIV

View File

@@ -15,6 +15,8 @@ RTEMS_PROG_CC_FOR_TARGET
RTEMS_CANONICALIZE_TOOLS
RTEMS_PROG_CCAS
RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION
# Explicitly list all Makefiles here
AC_CONFIG_FILES([Makefile])
AC_OUTPUT

View File

@@ -0,0 +1,28 @@
/*
* This routine starts the application. It includes application,
* board, and monitor specific initialization and configuration.
* The generic CPU dependent initialization has been performed
* before this routine is invoked.
*
* COPYRIGHT (c) 1989-1999.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rtems.com/license/LICENSE.
*
* $Id$
*/
#include <bsp.h>
/*
* Call Spurious_Initialize in bsp_predriver_hook because
* bsp_predriver_hook is call after the _ISR_Vector_Table allocation
*/
void bsp_predriver_hook(void)
{
extern void Spurious_Initialize(void);
Spurious_Initialize();
}

View File

@@ -36,7 +36,7 @@ __DYNAMIC = 0;
_RamBase = DEFINED(_RamBase) ? _RamBase : 0x10000;
_RamSize = DEFINED(_RamSize) ? _RamSize : 0x70000;
_RamEnd = _RamBase + _RamSize;
_HeapSize = DEFINED(_HeapSize) ? _HeapSize : 0x10000;
_HeapSize = DEFINED(_HeapSize) ? _HeapSize : 0x0;
_StackSize = DEFINED(_StackSize) ? _StackSize : 0x2000;
MEMORY

View File

@@ -49,7 +49,7 @@ _RamEnd = _RamBase + _RamSize;
__end_of_ram = 0x080000;
_copy_data_from_rom = 1;
_HeapSize = DEFINED(_HeapSize) ? _HeapSize : 0x10000;
_HeapSize = DEFINED(_HeapSize) ? _HeapSize : 0x0;
_StackSize = DEFINED(_StackSize) ? _StackSize : 0x2000;
/*