Commit Graph

9 Commits

Author SHA1 Message Date
Till Straumann
37834667fd 2011-05-18 Till Straumann <strauman@slac.stanford.edu>
PR1797/bsps: Applied cleaned-up version of Kate's patch.
	CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK is now a 'bspopts.h'
	setting and as such configurable.
2011-05-18 05:08:36 +00:00
Joel Sherrill
db77b92977 2008-09-15 Joel Sherrill <joel.sherrill@oarcorp.com>
* shared/startup/bspstart.c, shared/startup/pretaskinghook.c: Add use
	of bsp_get_work_area() in its own file and rely on BSP Framework to
	perform more initialization.
	* shared/startup/bspgetworkarea.c: New file.
2008-09-15 22:05:19 +00:00
Till Straumann
5b9e302c77 2008-05-23 Till Straumann <strauman@slac.stanford.edu>
* shared/startup/pretaskinghook.c: removed declaration
	of BSP_vme_config() (which is already declared in
	<bsp/VME.h>. Removed test for NULL-ness of BSP_vme_config;
	gcc doesn't seem to understand that the linker may
	define this to be NULL... Silences a compiler warning
	(and users can always provide an empty routine).
2008-05-23 21:34:35 +00:00
Joel Sherrill
5545002da9 2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>
* shared/startup/pretaskinghook.c: Add capability for bootcard.c BSP
	Initialization Framework to ask the BSP where it has memory for the
	RTEMS Workspace and C Program Heap. These collectively are referred
	to as work area. If the BSP supports this, then it does not have to
	include code to split the available memory between the two areas.
	This reduces the amount of code in the BSP specific bspstart.c file.
	Additionally, the shared framework can initialize the C Library, call
	rtems_debug_enable(), and dirty the work area memory. Until most/all
	BSPs support this new capability, if the BSP supports this, it should
	call RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION from its configure.ac.
	When the transition is complete, this autoconf macro can be removed.
2008-05-15 15:54:24 +00:00
Till Straumann
73c7cf1e10 2008-03-19 Till Straumann <strauman@slac.stanford.edu>
* shared/startup/pretaskinghook.c: install pointer
	to rtems_malloc_sbrk_helpers_table. This (and derived)
	BSPs rely on sbrk delivering even the first/initial
	chunk of memory.
2008-03-20 19:10:03 +00:00
Joel Sherrill
4b39acf19a 2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* shared/startup/bspstart.c, shared/startup/pretaskinghook.c: Eliminate
	copies of the Configuration Table. Use the RTEMS provided accessor
	macros to obtain configuration fields.
2007-12-11 15:46:56 +00:00
Till Straumann
956c9b58ab 2007-11-30 Till Straumann <strauman@slac.stanford.edu>
* shared/startup/pretaskinghook.c: Replaced inclusion of
	<bsp/consoleIo.h> by <rtems/bspIo.> (for printk) and
	made it conditional on #ifdef SHOW_MORE_INIT_SETTINGS.
2007-11-30 22:36:07 +00:00
Till Straumann
8c6579b9dc - trivial correction in comment 2005-11-29 18:47:05 +00:00
Till Straumann
ab20575a29 2005-11-03 <strauman@slac.stanford.edu>
* shared/startup/pretaskinghook.c, shared/startup/zerobss.c: New files.
	* Makefile.am, shared/startup/bspstart.c: Split
	pretaskinghook and zerobss into separate, reusable files; Fixed
	#PR837 (set exception in ram flag before initializing exceptions);
	Setup DBATs early, they are needed to access peripherals (Allows
	mvme2100 to use MMU); moved VME initialization into pretasking hook
	so that shared interrupts can be used for VME [shared IRQ facility
	needs functional workspace].
2005-11-04 00:57:25 +00:00