2008-05-12 Joel Sherrill <joel.sherrill@OARcorp.com>

* Makefile.am, startup/bspstart.c: Refactored and renamed
	initialization routines to rtems_initialize_data_structures,
	rtems_initialize_before_drivers, rtems_initialize_device_drivers, and
	rtems_initialize_start_multitasking. This opened the sequence up so
	that bootcard() could provide a more robust and flexible framework
	which is easier to explain and understand. This also lays the
	groundwork for sharing the division of available memory between the
	RTEMS workspace and heap and the C library initialization across all
	BSPs.
This commit is contained in:
Joel Sherrill
2008-05-12 18:42:36 +00:00
parent a169cf068e
commit 67a9b24a9b
6 changed files with 27 additions and 22 deletions

View File

@@ -1,3 +1,15 @@
2008-05-12 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, startup/bspstart.c: Refactored and renamed
initialization routines to rtems_initialize_data_structures,
rtems_initialize_before_drivers, rtems_initialize_device_drivers, and
rtems_initialize_start_multitasking. This opened the sequence up so
that bootcard() could provide a more robust and flexible framework
which is easier to explain and understand. This also lays the
groundwork for sharing the division of available memory between the
RTEMS workspace and heap and the C library initialization across all
BSPs.
2008-03-03 Joel Sherrill <joel.sherrill@OARcorp.com> 2008-03-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* startup/linkcmds, startup/linkcmds.hsc_cm01, * startup/linkcmds, startup/linkcmds.hsc_cm01,

View File

@@ -45,6 +45,7 @@ mpc83xx_regs_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
noinst_PROGRAMS += startup.rel noinst_PROGRAMS += startup.rel
startup_rel_SOURCES = ../../shared/bspclean.c ../../shared/bsplibc.c \ startup_rel_SOURCES = ../../shared/bspclean.c ../../shared/bsplibc.c \
../../shared/bsppost.c startup/bspstart.c ../../shared/bootcard.c \ ../../shared/bsppost.c startup/bspstart.c ../../shared/bootcard.c \
../../shared/bsppredriverhook.c \
../../shared/sbrk.c ../../shared/gnatinstallhandler.c startup/cpuinit.c ../../shared/sbrk.c ../../shared/gnatinstallhandler.c startup/cpuinit.c
startup_rel_CPPFLAGS = $(AM_CPPFLAGS) startup_rel_CPPFLAGS = $(AM_CPPFLAGS)

View File

@@ -58,10 +58,8 @@ uint32_t bsp_clicks_per_usec;
/* /*
* Use the shared implementations of the following routines. * Use the shared implementations of the following routines.
* Look in rtems/c/src/lib/libbsp/shared/bsppost.c and * Look in rtems/c/src/lib/libbsp/shared/bsplibc.c.
* rtems/c/src/lib/libbsp/shared/bsplibc.c.
*/ */
void bsp_postdriver_hook(void);
void bsp_libc_init( void *, uint32_t, int ); void bsp_libc_init( void *, uint32_t, int );
extern void initialize_exceptions(void); extern void initialize_exceptions(void);
extern void cpu_init(void); extern void cpu_init(void);
@@ -124,12 +122,6 @@ bsp_pretasking_hook(void)
#endif #endif
} }
void bsp_predriver_hook(void)
{
}
void bsp_calc_mem_layout() void bsp_calc_mem_layout()
{ {
/* /*

View File

@@ -1,3 +1,15 @@
2008-05-12 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, startup/bspstart.c: Refactored and renamed
initialization routines to rtems_initialize_data_structures,
rtems_initialize_before_drivers, rtems_initialize_device_drivers, and
rtems_initialize_start_multitasking. This opened the sequence up so
that bootcard() could provide a more robust and flexible framework
which is easier to explain and understand. This also lays the
groundwork for sharing the division of available memory between the
RTEMS workspace and heap and the C library initialization across all
BSPs.
2008-03-03 Joel Sherrill <joel.sherrill@OARcorp.com> 2008-03-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* startup/linkcmds: Add wildcard to gcc_except_table section so * startup/linkcmds: Add wildcard to gcc_except_table section so

View File

@@ -36,6 +36,7 @@ dist_project_lib_DATA += startup/linkcmds
noinst_PROGRAMS += startup.rel noinst_PROGRAMS += startup.rel
startup_rel_SOURCES = startup/bspclean.c ../../shared/bsplibc.c \ startup_rel_SOURCES = startup/bspclean.c ../../shared/bsplibc.c \
../../shared/bsppost.c startup/bspstart.c ../../shared/bootcard.c \ ../../shared/bsppost.c startup/bspstart.c ../../shared/bootcard.c \
../../shared/bsppredriverhook.c \
../../shared/sbrk.c startup/setvec.c \ ../../shared/sbrk.c startup/setvec.c \
../../shared/gnatinstallhandler.c ../../shared/gnatinstallhandler.c
startup_rel_CPPFLAGS = $(AM_CPPFLAGS) startup_rel_CPPFLAGS = $(AM_CPPFLAGS)

View File

@@ -96,7 +96,6 @@ boolean bsp_timer_internal_clock; /* TRUE, when timer runs with CPU clk */
*/ */
void bsp_XAssertHandler(const char* file, int line); void bsp_XAssertHandler(const char* file, int line);
void bsp_postdriver_hook(void);
void bsp_libc_init( void *, uint32_t, int ); void bsp_libc_init( void *, uint32_t, int );
@@ -104,18 +103,6 @@ void bsp_XAssertHandler(const char* file, int line) {
printf("\n***\n*** XAssert Failed! File: %s, Line: %d\n***\n", file, line); printf("\n***\n*** XAssert Failed! File: %s, Line: %d\n***\n", file, line);
} }
/*
*
* bsp_predriver_hook
*
* Before drivers are setup.
*/
void bsp_predriver_hook(void)
{
}
/* /*
* Function: bsp_pretasking_hook * Function: bsp_pretasking_hook
* Created: 95/03/10 * Created: 95/03/10