Commit Graph

49 Commits

Author SHA1 Message Date
Till Straumann
d1e85c41ea 2011-05-18 Till Straumann <strauman@slac.stanford.edu>
PR1797/bsps
	* shared/bootcard.c: Fixed a typo (in code, not comment) which
	I introduced with the last change.
2011-05-18 16:08:56 +00:00
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
2e92a5d690 2009-10-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
* bootcard: Update for heap API changes.
2009-10-12 20:22:18 +00:00
Joel Sherrill
f1e8903dc0 2009-08-28 Joel Sherrill <joel.sherrill@OARcorp.com>
* bootcard.c, bsplibc.c, clockdrv_shell.h, console-polled.c: Fix
	formatting.
2009-08-28 18:24:10 +00:00
Joel Sherrill
5ab278ff9e 2009-05-08 Joel Sherrill <joel.sherrill@oarcorp.com>
* bootcard.c, bspgetworkarea.c, include/bootcard.h: Switch from ssize_t
	to uintptr_t for bsp_get_work_area() since the work area is larger
	than a single allocatable object.
2009-05-08 13:24:27 +00:00
Joel Sherrill
dce79aee44 2009-05-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* bootcard.c, gdbstub/rtems-stub-glue.c: Add info to not enough memory
	message.
2009-05-05 21:17:47 +00:00
Chris Johns
2549b4d9a8 2009-04-28 Chris Johns <chrisj@rtems.org>
* bootcard.c, include/bootcard.h: Remove argc/argv/envp and
        replace with a single BSP boot command line a BSP can optionally
        support.
2009-04-28 06:34:38 +00:00
Joel Sherrill
96f2d87a59 2009-03-10 Eric Norum <norume@aps.anl.gov>
* bootcard.c: Swap order of RTEMS Workspace and Malloc Heap. This
	allows the potential for sbrk() to extend the heap area. This
	actually is done on PowerPC BSPs with more than 32MB which use
	dynamic loading.
2009-03-10 17:40:06 +00:00
Till Straumann
b0d9310de7 2009-03-05 Till Straumann <strauman@slac.stanford.edu>
* bootcard.c: use aligned heap_start (instead of
	original heap_start) when calculating default heap
	size (to take into account loss due to alignment).
2009-03-05 21:10:07 +00:00
Joel Sherrill
71d0488b6c 2008-12-15 Joel Sherrill <joel.sherrill@oarcorp.com>
* bootcard.c: Eliminate pointers to API configuration tables in the
	main configuration table. Reference the main configuration table and
	the API configuration tables directly using the confdefs.h version
	rather than obtaining a pointer to it. This eliminated some
	variables, a potential fatal error, some unnecessary default
	configuration structures. Overall, about a 4.5% reduction in the code
	size for minimum and hello on the SPARC.
2008-12-15 19:22:36 +00:00
Joel Sherrill
61814f978e 2008-10-02 Joel Sherrill <joel.sherrill@oarcorp.com>
* bootcard.c, bspgetworkarea.c, bsppretaskinghook.c,
	include/bootcard.h: Change size_t to ssize_t on bsp_get_work_area().
	On 16-bit architectures, size_t can be 16-bits which would limit the
	work area to 64K.
2008-10-02 19:13:05 +00:00
Joel Sherrill
0de9fdfb2e 2008-09-23 Joel Sherrill <joel.sherrill@oarcorp.com>
* bootcard.c, include/bootcard.h: Make letting boot_card() handle work
	area allocation mandatory. Rename
	RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION to BSP_BOOTCARD_OPTIONS.
2008-09-23 19:53:41 +00:00
Joel Sherrill
4e1cc1739b 2008-09-18 Joel Sherrill <joel.sherrill@oarcorp.com>
* bootcard.c: Perform bsp_start() before bsp_get_work_area().
2008-09-18 20:48:17 +00:00
Joel Sherrill
1986152ec9 2008-09-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* bootcard.c: Add support for optionally having a unified work area. In
	other words, the RTEMS Workspace and C Program Heap are the same pool
	of memory.
2008-09-17 18:38:05 +00:00
Joel Sherrill
b642940c49 2008-08-30 Joel Sherrill <joel.sherrill@oarcorp.com>
* bootcard.c: Fix formatting.
	* console-polled.c: Error if minor < 2 not just <= 2.
2008-08-30 23:00:39 +00:00
Joel Sherrill
f3eaba9a0c 2008-08-19 Sebastian Huber <sebastian.huber@embedded-brains.de>
* include/bootcard.h, bootcard.c, bsplibc.c: Changed parameter types of
	bsp_libc_init() to match RTEMS_Malloc_Initialize().
	* bsppost.c, bsppredriverhook.c: Include bootcard.h.
	* src/irq-generic.c: Fixed warnings.
2008-08-19 12:41:03 +00:00
Thomas Doerfler
cc54cc9175 src/irq-legacy.c: Free allocated memory in hander remove
bootcard.c: Check if the heap fits into the work area
2008-07-29 07:11:21 +00:00
Thomas Doerfler
d4886a0695 Changed bsp_get_workarea() to bsp_get_work_area() and
added support for an optional separate heap area.
2008-07-24 14:52:55 +00:00
Joel Sherrill
fa379b086c 2008-07-15 Joel Sherrill <joel.sherrill@oarcorp.com>
* bootcard.c: Must include bsp.h or bspopts.h or we cannot know if
	boot_card() handles RAM allocation.
2008-07-15 22:22:09 +00:00
Joel Sherrill
18e6e824a6 Spacing. 2008-07-15 13:32:12 +00:00
Thomas Doerfler
574fb67510 updated gen83xx BSP
updated haleakala BSP
added MPC55xx BSP
2008-07-14 16:15:28 +00:00
Thomas Doerfler
a86f3aac96 adapted powerpc BSPs to new exception code 2008-07-11 10:01:37 +00:00
Joel Sherrill
ec3007cafd 2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>
* bootcard.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.
	* bsppretaskinghook.c: New file.
2008-05-15 15:55:46 +00:00
Joel Sherrill
3820ff24b8 2008-05-12 Joel Sherrill <joel.sherrill@OARcorp.com>
* bootcard.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-05-12 18:44:12 +00:00
Joel Sherrill
7492598196 2008-05-06 Joel Sherrill <joel.sherrill@OARcorp.com>
* bootcard.c: Improve formatting and comments.
2008-05-06 19:28:02 +00:00
Joel Sherrill
af043e1319 2008-01-22 Joel Sherrill <joel.sherrill@OARcorp.com>
* bootcard.c: Improve comments and clean up argc/argv order.
2008-01-22 15:30:59 +00:00
Joel Sherrill
4e9893b19a 2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* bootcard.c, bsplibc.c: Eliminate copies of the Configuration Table.
	Use the RTEMS provided accessor macros to obtain configuration
	fields.
2007-12-11 15:50:53 +00:00
Joel Sherrill
99f9b868c7 2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* bootcard.c: Move interrupt_stack_size field from CPU Table to
	Configuration Table. Eliminate CPU Table from all ports. Delete
	references to CPU Table in all forms.
2007-12-04 22:22:58 +00:00
Joel Sherrill
611fc9f904 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* bootcard.c: Moved most of the remaining CPU Table fields to the
	Configuration Table. This included pretasking_hook, predriver_hook,
	postdriver_hook, idle_task, do_zero_of_workspace,
	extra_mpci_receive_server_stack, stack_allocate_hook, and
	stack_free_hook. As a side-effect of this effort some multiprocessing
	code was made conditional and some style clean up occurred.
2007-12-03 22:26:42 +00:00
Joel Sherrill
4c3d3cdbfd 2007-11-26 Joel Sherrill <joel.sherrill@oarcorp.com>
* bootcard.c: Add comment.
2007-11-26 22:09:27 +00:00
Joel Sherrill
ded1977959 2007-05-09 Joel Sherrill <joel.sherrill@OARcorp.com>
* bootcard.c: Move __fini call to inside executive for
	symmettry with __init call.
2007-05-09 18:29:29 +00:00
Joel Sherrill
004b7410e6 2007-04-17 Joel Sherrill <joel@OARcorp.com>
* bootcard.c: RTEMS Workspace now defaults to not being zeroed. This
	significantly speeds up boot time on targets not requiring memory to
	be touched at boot time.
2007-04-17 15:58:40 +00:00
Joel Sherrill
9f59157783 2007-03-09 Joel Sherrill <joel@OARcorp.com>
* bootcard.c: Change XXX to real comment.
2007-03-09 14:59:00 +00:00
Joel Sherrill
460cd5b728 2006-12-13 Joel Sherrill <joel@OARcorp.com>
PR 1190/bsps
	* bootcard.c: Remove status since unused.
2006-12-13 14:46:41 +00:00
Joel Sherrill
66d973ffbe 2006-11-15 Joel Sherrill <joel@OARcorp.com>
* bootcard.c: Merge c_rtems_main() into boot_card(). This eliminated a
	file and simplified initialization.
	* main.c: Removed.
2006-11-15 15:20:05 +00:00
Ralf Corsepius
f05b2ac0bc Remove duplicate white lines. 2004-04-21 16:01:48 +00:00
Ralf Corsepius
6128a4aa5e Remove stray white spaces. 2004-04-21 10:43:04 +00:00
Joel Sherrill
7050ec709b 2003-09-04 Joel Sherrill <joel@OARcorp.com>
* bootcard.c, bspclean.c, clockdrv_shell.c, console-polled.c,
	console.c, ide_ctrl.c, main.c, sbrk.c, setvec.c, tod.c, tod.h,
	include/coverhd.h: URL for license changed.
2003-09-04 18:52:52 +00:00
Joel Sherrill
ac6ddad170 2001-10-22 Joel Sherrill <joel@OARcorp.com>
* bootcard.c: Use __USE_INIT_FINI__ since USE_INIT_FINI
	pollutes the application namespace.
2001-10-22 11:56:21 +00:00
Joel Sherrill
af536c966a 2001-09-28 Joel Sherrill <joel@OARcorp.com>
* shared/bootcard.c, shared/main.c: Now call int c_rtems_main()
	not main().
2001-09-28 23:14:58 +00:00
Joel Sherrill
a8b2523f58 2001-09-27 Eric Norum <eric.norum@usask.ca>
* hared/bootcard.c: Now process C++ global constructors
	(_init) as part of the first task execution not in BSP space.
	This depends on the toolset defining USE_INIT_FINI so you
	have to have the right toolset version.
2001-09-27 13:34:15 +00:00
Joel Sherrill
c629812c01 Removed warnings. 1999-12-13 22:10:45 +00:00
Joel Sherrill
08311cc3a9 Updated copyright notice. 1999-11-17 17:51:34 +00:00
Joel Sherrill
67d0f4e1eb Modified to setup environment pointer on all BSPs. This results
in getenv/putenv working all the time without special assistance
from the BSP.
1999-10-04 13:43:46 +00:00
Joel Sherrill
bd5278665f Now correctly does deep copy. 1999-08-02 15:24:57 +00:00
Joel Sherrill
a2cc7b7fb4 Corrected typo and added correct conditional compilation on RTEMS_POSIX_API. 1999-07-30 17:18:39 +00:00
Joel Sherrill
54f440d311 Patch from Charles-Antoine Gauthier <charles.gauthier@iit.nrc.ca>.
to address m68k-rtemself for the MVME167.

    Here is the rtems patch I promissed you a long time ago to enable ELF
    with m68k. The target name I selected is m68k-rtemself. It preserves the
    m68k-rtems COFF target, and is parterned after the other ELF/COFF dual
    targets.

    The mvme167.cfg file causes the -qelf flag to be used during compilation
    if the name of the compiler contains rtemself. This flag is used in the
    bsp_specs file to select the elflinkcmds file rather than the linkcmds
    file. The former is for ELF, the latter for COFF.

    Some patches are required to the mc68040 FPSP code. Some of the
    assembler files contain instructions that were rejected by the
    m68k-rtemself-as assembler.  This is a minor bug in the m68k ELF
    assembler, I think.
1999-07-26 22:11:02 +00:00
Joel Sherrill
38e4a9169a Patch from Rosimildo DaSilva <rdasilva@connecttel.com> to readd calls to
init() and fini() routines.
1999-07-13 14:54:16 +00:00
Joel Sherrill
c8d91839ff Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de> that splits
boot_card() and main() into separate files to ease configuration
of other packages.  This was a big step in the way to build TCL,
ncurses, and zlib for RTEMS.
1999-07-02 18:57:11 +00:00