Commit Graph

41 Commits

Author SHA1 Message Date
Jennifer Averett
2d0d0293ee 2005-04-15 Jennifer Averett <jennifer.averett@oarcorp.com>
PR 779/bsp
	* clock/p_clock.c, console/console.c, console/uart.c, console/uart.h,
	irq/irq.c, irq/irq.h, irq/irq_init.c:
	powerpc: add parameter to new exception interrupt handlers
2005-04-15 17:52:46 +00:00
Joel Sherrill
e79a194755 2004-11-10 Richard Campbell <richard.campbell@oarcorp.com>
* Makefile.am, bootloader/misc.c, bootloader/pci.c, bootloader/pci.h,
	console/console.c, console/inch.c, console/reboot.c, console/uart.c,
	console/uart.h, irq/irq.c, irq/irq.h, irq/irq_init.c,
	motorola/motorola.c, motorola/motorola.h, openpic/openpic.c,
	openpic/openpic.h, pci/detect_raven_bridge.c, pci/pci.c,
	start/start.S, startup/bspstart.c, vectors/vectors_init.c,
	vme/vmeconfig.c: Add MVME2100 BSP and MPC8240 support. There was also
	a significant amount of spelling and whitespace cleanup.
	* tod/todcfg.c: New file.
2004-11-10 23:51:17 +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
Ralf Corsepius
3239698d1f Remove stray white spaces. 2004-04-15 13:26:21 +00:00
Ralf Corsepius
b7768c55e2 2004-04-01 Ralf Corsepius <ralf_corsepius@rtems.org>
* bootloader/exception.S: Include <rtems/asm.h> instead of <asm.h>.
	* bootloader/head.S: Include <rtems/asm.h> instead of <asm.h>.
	* irq/irq_asm.S: Include <rtems/asm.h> instead of <asm.h>.
	* start/rtems_crti.S: Include <rtems/asm.h> instead of <asm.h>.
	* start/start.S: Include <rtems/asm.h> instead of <asm.h>.
	* vectors/vectors.S: Include <rtems/asm.h> instead of <asm.h>.
	* include/bsp.h: Include <rtems/clockdrv.h> instead of <clockdrv.h>.
	* include/bsp.h: Include <rtems/console.h> instead of <console.h>.
2004-04-01 10:11:27 +00:00
Joel Sherrill
da3b8d3ef8 2004-03-05 Joel Sherrill <joel@OARcorp.com>
* bootloader/pci.c: Remove warnings by adding include <string.h>.
	* irq/irq.c: Clean up includes to remove warnings.
	* pci/pci.c, pci/pci.h, startup/bspstart.c: Better use of const
	on struct _int_map.
2004-03-05 18:09:14 +00:00
Ralf Corsepius
a146423c71 2004-02-03 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Merge-in bootloader/Makefile.am, clock/Makefile.am,
	console/Makefile.am, include/Makefile.am, irq/Makefile.am,
	motorola/Makefile.am, openpic/Makefile.am, pci/Makefile.am,
	residual/Makefile.am, start/Makefile.am, startup/Makefile.am,
	vectors/Makefile.am, vme/Makefile.am. Use automake compilation rules.
	* bootloader/Makefile.am, clock/Makefile.am, console/Makefile.am,
	include/Makefile.am, irq/Makefile.am, motorola/Makefile.am,
	openpic/Makefile.am, pci/Makefile.am, residual/Makefile.am,
	start/Makefile.am, startup/Makefile.am, vectors/Makefile.am,
	vme/Makefile.am: Remove.
2004-02-03 13:23:58 +00:00
Ralf Corsepius
e83c535451 2004-01-21 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* console/Makefile.am: Add PREINSTALL_DIRS.
	* irq/Makefile.am: Add PREINSTALL_DIRS.
	* motorola/Makefile.am: Add PREINSTALL_DIRS.
	* openpic/Makefile.am: Add PREINSTALL_DIRS.
	* pci/Makefile.am: Add PREINSTALL_DIRS.
	* residual/Makefile.am: Add PREINSTALL_DIRS.
	* vectors/Makefile.am: Add PREINSTALL_DIRS.
2004-01-21 15:09:55 +00:00
Ralf Corsepius
bc76099782 2004-01-14 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* console/Makefile.am: Re-add dirstamps to PRE/TMPINSTALL_FILES.
	Add PRE/TMPINSTALL_FILES to CLEANFILES.
	* irq/Makefile.am: Ditto.
	* motorola/Makefile.am: Ditto.
	* openpic/Makefile.am: Ditto.
	* pci/Makefile.am: Ditto.
	* residual/Makefile.am: Ditto.
	* vectors/Makefile.am: Ditto.
2004-01-14 07:11:04 +00:00
Ralf Corsepius
ecfe4f8ab9 2003-12-12 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* console/Makefile.am: Use mkdir_p. Remove dirs from PRE/TMPINSTALL_FILES.
	* irq/Makefile.am: Use mkdir_p. Remove dirs from PRE/TMPINSTALL_FILES.
	* motorola/Makefile.am: Use mkdir_p. Remove dirs from PRE/TMPINSTALL_FILES.
	* openpic/Makefile.am: Use mkdir_p. Remove dirs from PRE/TMPINSTALL_FILES.
	* pci/Makefile.am: Use mkdir_p. Remove dirs from PRE/TMPINSTALL_FILES.
	* residual/Makefile.am: Use mkdir_p. Remove dirs from PRE/TMPINSTALL_FILES.
	* vectors/Makefile.am: Use mkdir_p. Remove dirs from PRE/TMPINSTALL_FILES.
2003-12-12 13:29:42 +00:00
Ralf Corsepius
a77cd06666 2003-12-02 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* bootloader/Makefile.am: Put all files into EXTRA_DIST.
	* vme/Makefile.am: Ditto.
	* console/Makefile.am: Move H_FILES to include_bsp_HEADERS.
	Add preinstallation dirstamp support.
	* irq/Makefile.am: Ditto.
	* motorola/Makefile.am: Ditto.
	* openpic/Makefile.am: Ditto.
	* pci/Makefile.am: Ditto.
	* residual/Makefile.am: Ditto.
	* vectors/Makefile.am: Ditto.
	* Makefile.am: Remove empty lines.
	* clock/Makefile.am: Ditto.
	* include/Makefile.am: Ditto.
	* startup/Makefile.am: Ditto.
2003-12-02 11:24:16 +00:00
Joel Sherrill
ae1f2436d2 2003-10-22 Joel Sherrill <joel@OARcorp.com>
PR 510/bsps
	* irq/irq.h: Add extern C wrapper.
2003-10-22 16:24:05 +00:00
Joel Sherrill
e831de8559 2003-09-04 Joel Sherrill <joel@OARcorp.com>
* bootloader/bootldr.h, bootloader/em86.c, bootloader/em86real.S,
	bootloader/exception.S, bootloader/head.S, bootloader/lib.c,
	bootloader/misc.c, bootloader/mm.c, bootloader/pci.c,
	clock/p_clock.c, console/console.c, console/consoleIo.h,
	console/inch.c, console/keyboard.h, console/polled_io.c,
	include/bsp.h, irq/i8259.c, irq/irq.c, irq/irq.h, irq/irq_asm.S,
	irq/irq_init.c, motorola/motorola.c, motorola/motorola.h,
	openpic/openpic.c, openpic/openpic.h, pci/pci.c, residual/residual.c,
	start/start.S, startup/bspstart.c, vectors/vectors.h,
	vectors/vectors_init.c: URL for license changed.
2003-09-04 18:52:38 +00:00
Joel Sherrill
fe235a1e28 2003-08-21 Till Strauman <strauman@slac.stanford.edu>
PR 456/bsps
	* irq/irq.c: Fix race condition when installing an ISR.
2003-08-21 17:05:56 +00:00
Ralf Corsepius
20ccd1f124 2003-08-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
Makefile.am: Reflect having moved automake.
	bootloader/Makefile.am: Reflect having moved automake.
	clock/Makefile.am: Reflect having moved automake.
	console/Makefile.am: Reflect having moved automake.
	include/Makefile.am: Reflect having moved automake.
	irq/Makefile.am: Reflect having moved automake.
	motorola/Makefile.am: Reflect having moved automake.
	openpic/Makefile.am: Reflect having moved automake.
	pci/Makefile.am: Reflect having moved automake.
	residual/Makefile.am: Reflect having moved automake.
	start/Makefile.am: Reflect having moved automake.
	startup/Makefile.am: Reflect having moved automake.
	vectors/Makefile.am: Reflect having moved automake.
	vme/Makefile.am: Reflect having moved automake.
2003-08-16 12:54:15 +00:00
Jennifer Averett
d14ba4884f 2003-08-05 Till Strauman <strauman@slac.stanford.edu>
PR 437/bsps
	* irq/irc.c: calls to bspIo/printk must not use '%i' format which is
	apparently not supported
        * pci/pci.c: calls to bspIo/printk must not use '%i' format which is
	apparently not supported
2003-08-05 19:51:33 +00:00
Joel Sherrill
ec821afa54 2003-07-18 Till Straumann <strauman@slac.stanford.edu>
PR 288/rtems
	* irq/irq_asm.S, startup/bspstart.c: _ISR_Nest_level is now properly
	maintained and any BSP which does not do so will trip a panic in the
	shared code.
2003-07-18 17:24:48 +00:00
Joel Sherrill
3a3e0b0e7d 2003-06-13 Greg Menke <gregory.menke@gsfc.nasa.gov>
PR 405/bsps
	* bootloader/pci.c: Added support for configuring devices for pci
	busses > 0
	* pci/pci.c, pci/pci.h: Added FixupPCI() to store vectors in the
	INTERRUPT_LINE register of pci devices any # of hops away
	from the host processor.
	* motorola/motorola.c, motorola/motorola.h: Added interrupt
	routing tables in support of FixupPCI.  This is board-specific,
	each board will have to supply information for FixupPCI() to do
	anything for it.
	* startup/bspstart.c: Extended bat2 to cover entire PCI address space.
	* irq/irq.c, irq/irq.h: Added support for shared interrupts.
	Existing single hander vectors are undisturbed, a new function
	added to allow adding/removing handlers from a vector.
2003-06-13 17:39:46 +00:00
Joel Sherrill
0d6849e76a 2003-04-10 Till Straumann <strauman@slac.stanford.edu>
PR 379/bsps
	* console/polled_io.c: libcpu provides 'printk' already.
	Therefore, the implementation in this file was removed (still
	used for the bootloader, though).  It now provides BSP_output_char()
	for libcpu's printk().
	* console/uart.c, console/uart.h: BSP_output_char_via_serial()
	prototype changed to match the BSP_output_char_function_type.  Note
	that the motorola BSPs use polled-io for the output_char routine, not
	the uart.c version. The latter can be used be other BSPs however
	(e.g. SVGM).
	* console/console.c, console/consoleIo.h, console/polled_io.c,
	irq/irq_init.c, openpic/openpic.c, pci/detect_raven_bridge.c:
	Unfortunately, the supported 'printk' format string subset of the
	polled-io and libcpu implementations are different - hence, a few
	format strings in the ppc/shared BSP were changed.
2003-04-10 16:35:33 +00:00
Joel Sherrill
bbd88004c6 2003-04-10 Joel Sherrill <joel@OARcorp.com>
PR 383/bsps
	* irq/irq.c: Fix bug introduced by conflicts in previous patches.
2003-04-10 13:05:24 +00:00
Joel Sherrill
ec6422eb96 2003-03-25 Till Straumann <strauman@slac.stanford.edu>
PR 360/bsps
	* irq/irq.c, irq/irq_init.c, openpic/openpic.c, openpic/openpic.h:
	BSP code had set the task priority register multiple times of
	the OpenPIC instead of setting the individual source priorities.
	This patch adds openpic_get_source_priority() and
	openpic_set_source_priority() calls and lets IRQ management code
	use them.
2003-03-25 16:55:53 +00:00
Joel Sherrill
de223218f5 2003-03-25 Till Straumann <strauman@slac.stanford.edu>
PR 349/bsps
	* irq/irq.c, vme/VME.h, vme/vmeconfig.c: Fixes library dependency
	on the vmeUniverse driver. It is now possible to use the ppc/shared/irq
	code on non-VME BSPs without triggering linkage of the vmeUniverse
	driver.
2003-03-25 16:48:24 +00:00
Joel Sherrill
64f8ae44cc 2003-03-18 Till Straumann <strauman@slac.stanford.edu>
PR 356/bsps
	This patch makes RTEMS/powerpc/shared EABI compliant.
	* irq/irq_init.c, start/Makefile.am, start/start.S, startup/bspstart.c,
	startup/pgtbl_setup.c, vectors/vectors.h, vectors/vectors_init.c:
	zero_bss() should clear not only bss but sbss and sbss2
	also (this is probably a bugfix, as sbss/sbss2 are
	probably used even if -msdata=eabi is not specified).
	* start/rtems_crti.S: New file which must
	be linked immediately after ecrti.o. rtems_crti.o contains
	a code snippet who lets __init() return immediately. Also,
	a new entry point '_init' to the C++ Ctors is generated
	for use by the RTEMS Thread_Handler.
2003-03-18 19:20:55 +00:00
Joel Sherrill
4f3e4f33db 2003-02-20 Till Straumann <strauman@slac.stanford.edu>
PR 349/bsps
	* console/console.c, console/uart.c, console/uart.h: implement
	IOCTLs for the serial (UART) console to install/retrieve a BREAK-IRQ
	callback.  The callback routine (if installed) is invoked from the
	UART ISR when a BREAK interrupt is detected.  This can be used
	e.g. to enforce a "hotkey" reboot a la vxWorks Ctrl-X (although we
	use the serial line break condition) NOTE: The callback runs in
	ISR context.
2003-02-20 21:32:07 +00:00
Joel Sherrill
5d740bbb0b 2002-11-17 Greg Menke <gregory.menke@gsfc.nasa.gov>
* irq/irq_init.c, motorola/motorola.c: Support for MTX603e.
2002-11-18 03:22:09 +00:00
Joel Sherrill
7657233d5a 2002-10-31 Joel Sherrill <joel@OARcorp.com>
* bootloader/em86.c, console/inch.c, console/polled_io.c, irq/irq.c,
	motorola/motorola.c, pci/detect_raven_bridge.c,
	vectors/vectors_init.c: Removed warnings.
2002-10-31 20:12:09 +00:00
Joel Sherrill
69ed59f083 2001-05-14 Till Straumann <strauman@slac.stanford.edu>
* bootloader/misc.c, console/Makefile.am, console/console.c,
	console/consoleIo.h, console/inch.c, console/polled_io.c,
	console/uart.c, console/uart.h, include/bsp.h, irq/Makefile.am,
	irq/irq.c, irq/irq.h, irq/irq_init.c, openpic/openpic.c,
	openpic/openpic.h, pci/Makefile.am, pci/pci.c, pci/pci.h,
	residual/Makefile.am, start/start.S, startup/bspstart.c,
	vectors/vectors.S, vectors/vectors.h, vectors/vectors_init.c:
	Per PR216, "libbsp/powerpc/shared" BSP has been modified considerably
	with the goal to make it more flexible and reusable by other
	BSPs. The main strategies were:
	    - eliminate hardcoded base addresses; devices use offsets
	      and a BSP defined base address.
	    - separate functionality into different files (e.g. reboot from
	      inch.c to reboot.c) which can be overridden by a 'derived' BSP.
	    - separate initialization code into separate files (e.g.  PCI
	      bridge detection/initialization was separated from the more
	      generic PCI access routines), also to make it easier for
	      'derived' BSPs to substitute their own initialization code.
	There are also a couple of enhancements and fixes:
	    - IRQ handling code now has a hook for attaching a VME bridge.
	    - OpenPIC is now explicitely initialized (polarities, senses).
	      Eliminated the implicit assumption on the presence of an ISA PIC.
	    - UART and console driver now supports more than 1 port. The current
	      maximum of 2 can easily be extended by enlarging a table (it
	      would even be easier if the ISR API was not broken by design).
	    - fixed polled_io.c so it correctly supports console on COM2
	    - fixed TLB invalidation code (start.S).
	    - exception handler prints a stack backtrace.
	    - added BSP_pciFindDevice() to scan the pci bus for a particular
	      vendor/device/instance.
2002-05-14 17:10:17 +00:00
Joel Sherrill
cd35cf9fb3 2002-04-18 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* bootloader/exception.S: Reflect changes to <rtems/score/cpu.h>.
	* bootloader/head.S: Ditto.
	* bootloader/misc.c: Ditto.
	* console/polled_io.c: Ditto.
	* irq/irq.c: Ditto.
	* irq/irq_asm.S: Ditto.
	* irq/irq_init.c: Include <rtems/bspIo.h>.
	* start/start.S: Reflect changes to <rtems/score/cpu.h>.
	* vectors/vectors.S: Ditto.
2002-04-18 20:55:13 +00:00
Joel Sherrill
7273b6e166 2002-03-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac:
	AC_INIT(package,_RTEMS_VERSION,_RTEMS_BUGS).
	AM_INIT_AUTOMAKE([no-define foreign 1.6]).
	* Makefile.am: Remove AUTOMAKE_OPTIONS.
2002-03-28 00:54:58 +00:00
Joel Sherrill
825b119703 2001-11-28 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* include/Makefile.am: Use _HEADER instead of H_FILES.
	* irq/Makefile.am: Ditto.
	* openpic/Makefile.am: Ditto.
	* include/bsp.h: Include <bspopts.h>.
2001-11-28 19:09:22 +00:00
Joel Sherrill
b0f80e1b7c 2001-09-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* console/Makefile.am: Use 'PREINSTALL_FILES ='.
	* residual/Makefile.am: Use 'PREINSTALL_FILES ='.
	* irq/Makefile.am: Use 'PREINSTALL_FILES ='.
	* motorola/Makefile.am: Use 'PREINSTALL_FILES ='.
	* vectors/Makefile.am: Use 'PREINSTALL_FILES ='.
	* pci/Makefile.am: Use 'PREINSTALL_FILES ='.
	* openpic/Makefile.am: Use 'PREINSTALL_FILES ='.
2001-09-27 19:41:08 +00:00
Joel Sherrill
3a6bfc6b86 Added comment. 2000-07-12 13:15:01 +00:00
Joel Sherrill
df49c60c96 Merged from 4.5.0-beta3a 2000-06-12 15:00:15 +00:00
Joel Sherrill
e4c0744478 Patch rtems-rc-4.5.0-13-cvs.diff from Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
adds .cvsignore.
2000-04-13 14:47:15 +00:00
Joel Sherrill
e06d5aed9a Fixed typo. 2000-02-08 18:38:00 +00:00
Joel Sherrill
4e36a2f133 Patches rtems-rc-20000118-3.diff and rtems-rc-20000118-4.diff from
Ralf Corsepius <corsepiu@faw.uni-ulm.de> that contain:

    * Modifications, (minor) corrections, cleanups to most existing
      Makefile.ams
    * Adds automake support to all remaining BSPs which have not yet been
      converted to automake.
    * Makefile.am for all remaining wrapup/Makefile.ams
2000-01-31 15:27:02 +00:00
Joel Sherrill
362ec23ed7 Patch rtems-rc-20000104-12.diff from Ralf Corsepius <corsepiu@faw.uni-ulm.de>
which converts the PowerPC BSPs to configuration and more automake.

    * Besides adding partial automake support, rsp converting all powerpc
      BSPs to make them compliant to the new configuration scheme, this patch
      attempts to fix several configuration bugs in powerpc related Makefiles.
2000-01-10 18:10:59 +00:00
Joel Sherrill
338f1dc186 Patch from Eric Valette <valette@crf.canon.fr> that makes sure the
interrupt code works on "old buggy MCP750 boards".  The symptom was
that there was no ethernet PCI IRQ at all.
2000-01-10 13:26:00 +00:00
Joel Sherrill
95273a610f Combination of coverhd.h cleanup and MVME23xx/MCP750 patch from Eric Valette
<valette@crf.canon.fr> and Jay Kulpinski <jskulpin@eng01.gdds.com>.
2000-01-03 14:06:42 +00:00
Joel Sherrill
acc25eec35 Merged of mcp750 and mvme2307 BSP by Eric Valette <valette@crf.canon.fr>.
As part of this effort, the mpc750 libcpu code is now shared with the
ppc6xx.
1999-12-02 14:31:19 +00:00