Commit Graph

2726 Commits

Author SHA1 Message Date
Joel Sherrill
bf939b0c02 2003-07-18 Till Straumann <strauman@slac.stanford.edu>
PR 415/bsps
	* pci/detect_raven_bridge.c, startup/bspstart.c:
	This patch reverts enabling MCP interrupts for the motorola_powerpc
	BSPs. REASON: pci config space scanning (as e.g. done by the DEC
	Ethernet driver) would raise machine check exceptions.
2003-07-18 17:05:39 +00:00
Joel Sherrill
734d1c5da8 2003-07-16 Greg Menke <gregory.menke@gsfc.nasa.gov>
PR 428/bsps
	PR 432/bsps
	* pci/pcibios.c, pci/pcibios.h: Added BSP_pci_Find_Device() which
	is copied from motorola_shared.
2003-07-18 15:51:38 +00:00
Joel Sherrill
367a0e2089 2003-07-16 Greg Menke <gregory.menke@gsfc.nasa.gov>
PR 428/bsps
	PR 432/bsps
	* bootloader/pci.c: Re-instated code that prevents remapping small
	IO regions, which if remapped would cause i8259 registers to move
	out from under the #define'd base addresses.
	* startup/bspstart.c: Reduced BAT2 PCI memory allocation to 256
	megs, I incorrectly had extended it which would cause problems with
	PCI devices that defined prefetchable memory.
2003-07-18 15:48:54 +00:00
Joel Sherrill
c4abc88385 2003-07-17 Joel Sherrill <joel@OARcorp.com>
PR 433/tools
	* mips-stub.c: Patch from C. M. Heard <heard@pobox.com> described as:

	The purpose of the patch is to make the stub ignore all
	characters except '+' (ack) or '-' (nak) when it has transmitted a
	packet and expects an acknowledgment. Without the patch,
	putpacket() will retransmit each time it receives anything other
	than '+' when expecting an ack, and that, bitter experience has
	found, frequently results in the stub failing to sync up when
	initially attaching to gdb.

	I think that rtems users will notice significant improvement in
	the of the mips stub if this patch is incorporated in the
	distribution; certainly I did in my stand-aline environment. I
	should hasten to add that it is only an improvement and not a 100%
	cure for synchronization problems because '+' characters can (and
	do) during as message data, and it's still possible for these to
	be mistaken as acks. I have no idea how to fix that short of
	redesigning the gdb-remote protocol.
2003-07-17 21:59:00 +00:00
Joel Sherrill
cd9dac06f6 2003-07-08 Joel Sherrill <joel@OARcorp.com>
* console/console.c: Correct typo.
2003-07-08 17:17:53 +00:00
Joel Sherrill
581a89ed79 2003-07-08 Joel Sherrill <joel@OARcorp.com>
PR 416/bsps
	* ppc403/ictrl/ictrl.c (ictrl_isr): We acknolwegde the interrupt in
	interrupt controller (clr_exisr(mask)) before calling the interrupt
	handler that will acnowledge the interrupt source. This results in
	the interrupt beeing seen a second time by the interrupt controller.
	Reported and fixed by El Kolli Yacine <yacine.elkolli@crf.canon.fr>.
2003-07-08 16:09:24 +00:00
Joel Sherrill
fb6d373515 2003-06-30 Joel Sherrill <joel@OARcorp.com>
* console-polled.c: Corrected comments in header.
2003-06-30 18:31:46 +00:00
Joel Sherrill
673df26e37 Reformatted so script picks up PR. 2003-06-23 16:30:52 +00:00
Chris Johns
3d8cb71628 PR264, PR414 2003-06-23 11:42:49 +00:00
Chris Johns
8f3e0c820e PR264 - Stopped the core dump by removing the bad instruction.
PR414 - Fixed the global interupt vector register.
        Linker command file to have the boot code in the first 8K.
        The chip select remap needed to be volatile.
2003-06-22 23:28:51 +00:00
Joel Sherrill
12838559c6 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:40:41 +00:00
Joel Sherrill
bff8ca6bfa 2003-06-13 Till Straumann <strauman@slac.stanford.edu>
PR 415/bsps
	* include/bsp.h, pci/detect_raven_bridge.c, startup/bspstart.c:
	Support enabling MCP exceptions on the host bridge. This can
	be used for memory probing on the VME bus.
2003-06-13 13:41:21 +00:00
Joel Sherrill
455e1a8619 2003-06-13 Joel Sherrill <joel@OARcorp.com>
* console/console.c, startup/linkcmds: Removed warnings.
2003-06-13 13:22:02 +00:00
Joel Sherrill
a7a950d7fd 2003-06-13 Joel Sherrill <joel@OARcorp.com>
* startup/linkcmds: Removed warnings.
2003-06-13 13:21:50 +00:00
Ralf Corsepius
a6242fa5d6 2003-05-15 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* startup/Makefile.am: Remove -DBSP_IS_I386EX=1 (unused).
2003-05-15 09:36:58 +00:00
Chris Johns
e16f60cdc2 HOWTO changes. 2003-05-08 14:24:05 +00:00
Chris Johns
776c11161e Updated the GRUB version info and how to build GRUB from source.
Added how to boot over the network with a PXE Netboot BIOS.
2003-05-08 14:21:24 +00:00
Chris Johns
3bd8f85795 PR401. Missing causing issues when importing into CVS. 2003-05-02 07:53:57 +00:00
Ralf Corsepius
d8767c3e64 Merger from trunk. 2003-04-14 06:24:44 +00:00
cvs2git
7c608e88e5 This commit was manufactured by cvs2svn to create branch 'rtems-4-6-branch'.
Cherrypick from master 2003-04-14 06:19:46 UTC Ralf Corsepius <ralf.corsepius@rtems.org> '2003-04-14	Ralf Corsepius <corsepiu@faw.uni-ulm.de>':
    c/src/lib/libbsp/i386/pc386/ide/.cvsignore
    c/src/lib/libbsp/powerpc/mbx8xx/ide/.cvsignore
    doc/develenv/direct.t
    doc/develenv/sample.t
    doc/develenv/utils.t
2003-04-14 06:19:47 +00:00
Joel Sherrill
b545552df8 2003-04-10 Till Straumann <strauman@slac.stanford.edu>
PR 380/bsps
	* vmeUniverse/vmeUniverse.c, vmeUniverse/vmeUniverse.h:
	make printk format strings compliant with libcpu/printk.
	minor fixes and lazy init bugfix.
2003-04-10 16:40:25 +00:00
Joel Sherrill
6ad3694786 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:13 +00:00
Joel Sherrill
2d8eddea7a 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:10 +00:00
Joel Sherrill
dd6ad01947 2003-03-27 Joel Sherrill <joel@OARcorp.com>
* bootloader/Makefile.am: Eliminate EABI CFLAGS from those used to
	compile the bootloader.
2003-03-27 18:44:42 +00:00
Joel Sherrill
b7985c50a6 2003-03-25 Thomas Doerfler <Thomas.Doerfler@imd-systems.de>
PR 368/filesystems
	* mpc8xx/include/mpc8xx.h: Add PCMCIA registers.
2003-03-25 18:36:34 +00:00
Joel Sherrill
26e927f71b 2003-03-25 Thomas Doerfler <Thomas.Doerfler@imd-systems.de>
PR 368/filesystems
	* startup/ldsegs.S: Increase alignment.
	* Makefile.am, configure.ac, include/bsp.h, wrapup/Makefile.am:
	Added IDE supporting infrastructure.
	* ide/Makefile.am, ide/ide.c, ide/idecfg.c: New files.  Added
	BSP support for libchip standard ide driver.
2003-03-25 18:21:29 +00:00
Joel Sherrill
086e708d3f 2003-03-25 Thomas Doerfler <Thomas.Doerfler@imd-systems.de>
PR 368/filesystem
	* ide/*: added BSP support for libchip standard ide driver
2003-03-25 18:17:25 +00:00
Joel Sherrill
2742cc30e5 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:29 +00:00
Joel Sherrill
a3ef256740 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:46:01 +00:00
Joel Sherrill
c960a72529 2003-03-25 Till Straumann <strauman@slac.stanford.edu>
PR 349/bsps
	* shared/include/cpuIdent.c: Readd PPC604r CPU.
2003-03-25 16:40:08 +00:00
Ralf Corsepius
4bab4aff51 Merger from CVS-trunk. 2003-03-25 08:06:19 +00:00
Joel Sherrill
186d8b23ce 2003-03-19 Joel Sherrill <joel@OARcorp.com>
* startup/linkcmds: Fixed so sysctl sections appear correctly. Also
	increased RAM (a lie) so all programs link.
2003-03-20 00:17:15 +00:00
Joel Sherrill
2ae52c7583 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:24:59 +00:00
Joel Sherrill
9cfccae23f 2003-03-18 Till Straumann <strauman@slac.stanford.edu>
PR 356/bsps
	* cpu.c: This patch makes RTEMS/PowerPC eabi compliant.
2003-03-18 19:22:55 +00:00
cvs2git
6ac7a12b3f This commit was manufactured by cvs2svn to create branch 'rtems-4-6-branch'.
Cherrypick from master 2003-03-18 19:20:55 UTC Joel Sherrill <joel.sherrill@OARcorp.com> '2003-03-18  Till Straumann <strauman@slac.stanford.edu>':
    c/src/lib/libbsp/powerpc/shared/start/rtems_crti.S
2003-03-18 19:20:56 +00:00
Joel Sherrill
98847ed837 2003-03-18 Till Straumann <strauman@slac.stanford.edu>
PR 356/bsps
	* bsp_specs, start/Makefile.am, startup/linkcmds
	This patch makes RTEMS/powerpc/shared EABI compliant.
	Declare all linker-script defined addresses as
	variables of unknown size and not as short objects
	like 'int', 'void*' etc.
	This prevents the compiler from generating a relocation
	who assumes the existence of an __rtems_end object in
	one of the short data areas (which would result in a
	linker error).
2003-03-18 18:16:53 +00:00
Joel Sherrill
95501284c6 2003-03-18 Joel Sherrill <joel@OARcorp.com>
* comm/GDB.HOWTO: Updated.
2003-03-18 14:25:40 +00:00
Ralf Corsepius
b18646c909 2003-03-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: Remove AC_CONFIG_AUX_DIR.
2003-03-06 10:45:24 +00:00
Joel Sherrill
c074ea2eae 2003-02-20 Till Straumann <strauman@slac.stanford.edu>
PR 349/bsps
	* mpc6xx/exceptions/raw_exception.c, mpc6xx/mmu/bat.c,
	mpc6xx/mmu/pte121.c, shared/include/cpuIdent.c,
	shared/include/cpuIdent.h, shared/src/Makefile.am, shared/src/stack.c,
	shared/src/stackTrace.h, powerpc/registers.h:
	  - undo improper 'fix' who broke mpc604r identification
	  - fix: 7400 identification PVR value was wrong
	  - enhance 'setdbat()' to switch OFF a given BAT if called with 0 size
	  - fix: page table support bugfix
	  - enhancement: provide routines to take and print stack trace
	    snapshots
	  - add definitions for HID1 and DABR SPRs
2003-02-20 22:07:54 +00:00
cvs2git
da1100e035 This commit was manufactured by cvs2svn to create branch 'rtems-4-6-branch'.
Cherrypick from master 2003-02-20 22:07:22 UTC Joel Sherrill <joel.sherrill@OARcorp.com> '2003-02-20	Till Straumann <strauman@slac.stanford.edu>':
    c/src/lib/libcpu/powerpc/shared/src/stack.c
    c/src/lib/libcpu/powerpc/shared/src/stackTrace.h
2003-02-20 22:07:23 +00:00
Joel Sherrill
ef42b5c2e9 2003-02-20 Till Straumann <strauman@slac.stanford.edu>
PR 349/bsps
	* configure.ac: Add glue to the powerpc/shared BSP
	to use the vmeUniverse VME-PCI bridge driver.
2003-02-20 21:59:02 +00:00
Joel Sherrill
83ae314d4e 2003-02-20 Till Straumann <strauman@slac.stanford.edu>
PR 349/bsps
	* startup/Makefile.am, startup/linkcmds startup/Makefile.am,
	startup/bspstart.c, startup/pgtbl_activate.c, startup/pgtbl_setup.c:
	Let the powerpc/shared (+derived) BSPs use pagetable support
	from libcpu.
2003-02-20 21:57:44 +00:00
Joel Sherrill
ff4e9fe7a1 2003-02-20 Till Straumann <strauman@slac.stanford.edu>
PR 349/bsps
	* startup/Makefile.am, startup/linkcmds startup/Makefile.am,
	startup/bspstart.c, startup/pgtbl_activate.c, startup/pgtbl_setup.c:
	Let the powerpc/shared (+derived) BSPs use pagetable support
	from libcpu.
2003-02-20 21:57:22 +00:00
Joel Sherrill
3c2f21a987 2003-02-20 Till Straumann <strauman@slac.stanford.edu>
PR 349/bsps
	* Makefile.am, configure.ac: Add glue to the powerpc/shared BSP
	to use the vmeUniverse VME-PCI bridge driver.
	* vme/.cvsignore, vme/Makefile.am, wrapup/Makefile.am: New files.
2003-02-20 21:57:21 +00:00
Joel Sherrill
5cfb5ca283 2003-02-20 Till Straumann <strauman@slac.stanford.edu>
PR 349/bsps
	* openpic/Makefile.am, pci/Makefile.am:
	  - install the 'openpic.h' and 'pci.h' headers
	  - avoid a name clash by renaming 'vsprintf' & friends
	    to 'k_vsprintf' etc.
	  - let 'rtemsReboot' print a stack trace (in case an 'assert' failed)
	  - irq.c:
	     * fix: remove implicit assumption that ISA interrupt vectors start
	            at 0
	     * add BSP hook to let a VME interrupt acknowledge the PCI/openpic
	       IRQ. (SEE ALSO THE ppc-sharedbsp-vme.diff patch)
	  - fix: EABI compliance; isr/exception lowlevel handlers must not
	         clobber R2 or R13
	  - fix: openpic_init was called with the polarity/senses tables
	         swapped (fixed wrong order of arguments)
	  - cosmetics: use new _read_SPRXX() _write_SPRXX() macros
2003-02-20 21:52:21 +00:00
Joel Sherrill
e7625fc6c9 2003-02-20 Till Straumann <strauman@slac.stanford.edu>
PR 349/bsps
	* console/polled_io.c, console/reboot.c, irq/irq.c, irq/irq_asm.S,
	irq/irq_init.c, openpic/Makefile.am, startup/linkcmds,
	vectors/vectors.S, vectors/vectors_init.c:
	  - install the 'openpic.h' and 'pci.h' headers
	  - avoid a name clash by renaming 'vsprintf' & friends
	    to 'k_vsprintf' etc.
	  - let 'rtemsReboot' print a stack trace (in case an 'assert' failed)
	  - irq.c:
	     * fix: remove implicit assumption that ISA interrupt vectors start
	            at 0
	     * add BSP hook to let a VME interrupt acknowledge the PCI/openpic
	       IRQ. (SEE ALSO THE ppc-sharedbsp-vme.diff patch)
	  - fix: EABI compliance; isr/exception lowlevel handlers must not
	         clobber R2 or R13
	  - fix: openpic_init was called with the polarity/senses tables
	         swapped (fixed wrong order of arguments)
	  - cosmetics: use new _read_SPRXX() _write_SPRXX() macros
2003-02-20 21:48:25 +00:00
Joel Sherrill
837a1323e3 2003-02-20 Till Straumann <strauman@slac.stanford.edu>
PR 349/bsps
	* startup/pgtbl_setup.c, startup/pgtbl_activate.c: New files
	* startup/Makefile.am, startup/bspstart.c, startup/linkcmds:
	Let the powerpc/shared (+derived) BSPs use pagetable support
   	from libcpu.
2003-02-20 21:45:49 +00:00
Joel Sherrill
422d561d4a 2003-02-20 Till Straumann <strauman@slac.stanford.edu>
PR 349/bsps
	* vme/.cvsignore, vme/Makefile.am, vme/VME.h, vme/VMEConfig.h,
	vme/vmeconfig.c: Add glue to the powerpc/shared BSP to use
	the vmeUniverse VME-PCI bridge driver.
2003-02-20 21:42:15 +00:00
Joel Sherrill
01fdbb1f30 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:38:50 +00:00
Joel Sherrill
254f0552cb 2003-02-20 Till Straumann <strauman@slac.stanford.edu>
PR 349/bsps
	* README.universe, vmeUniverse/README.porting
	vmeUniverse/README.universe, vmeUniverse/vmeUniverse.c,
	vmeUniverse/vmeUniverse.h: Update of the VME universe driver.
	* vmeUniverse/README.porting: New file.
2003-02-20 21:37:34 +00:00