Commit Graph

8500 Commits

Author SHA1 Message Date
Joel Sherrill
f6821c3efb 2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* bsp_specs, include/bsp.h, startup/bspstart.c: Eliminate copies of the
	Configuration Table. Use the RTEMS provided accessor macros to obtain
	configuration fields.
2007-12-11 15:46:47 +00:00
Joel Sherrill
ed5ba1c9e2 2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* include/bsp.h, startup/bspstart.c, startup/bspstart.c.nocache:
	Eliminate copies of the Configuration Table. Use the RTEMS provided
	accessor macros to obtain configuration fields.
2007-12-11 15:46:39 +00:00
Joel Sherrill
5023c87431 2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* bsp_specs, clock/clock.c, include/bsp.h, irq/irq.c,
	startup/bspclean.c, startup/bspstart.c: Eliminate copies of the
	Configuration Table. Use the RTEMS provided accessor macros to obtain
	configuration fields.
2007-12-11 15:46:33 +00:00
Joel Sherrill
7f6bb8cdb1 2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* shared/bspstart.c: Eliminate copies of the Configuration Table. Use
	the RTEMS provided accessor macros to obtain configuration fields.
2007-12-11 15:46:21 +00:00
Joel Sherrill
2d2586780c 2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* clock/ckinit.c, include/bsp.h: Eliminate copies of the Configuration
	Table. Use the RTEMS provided accessor macros to obtain configuration
	fields.
2007-12-11 15:46:18 +00:00
Joel Sherrill
200748bfa0 2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* clock/clock.c, include/bsp.h, startup/bspstart.c,
	startup/rtems-ctor.cc: Eliminate copies of the Configuration Table.
	Use the RTEMS provided accessor macros to obtain configuration
	fields.
2007-12-11 15:46:10 +00:00
Joel Sherrill
35f1d89dbe 2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* at91rm9200/clock/clock.c, lpc22xx/clock/clockdrv.c,
	mc9328mxl/clock/clockdrv.c, s3c2400/clock/clockdrv.c: Eliminate
	copies of the Configuration Table. Use the RTEMS provided accessor
	macros to obtain configuration fields.
2007-12-11 15:46:05 +00:00
Joel Sherrill
0f9ecc4ecf 2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* mcf5206/clock/ckinit.c, mcf5272/clock/ckinit.c: Eliminate copies of
	the Configuration Table. Use the RTEMS provided accessor macros to
	obtain configuration fields.
2007-12-11 15:45:54 +00:00
Joel Sherrill
36a8a2d57a 2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* runtest: Change 4.8 to 4.9.
2007-12-11 15:44:01 +00:00
Till Straumann
c9f79e6da6 2007-12-10 Till Straumann <strauman@slac.stanford.edu>
* Makefile.am, start/preload.S: moved preload.S
	to ../shared/start.
2007-12-11 07:49:00 +00:00
Till Straumann
8566824c03 2007-12-10 Till Straumann <strauman@slac.stanford.edu>
* irq/irq_init.c:
	renamed ASM_BOOKE_PIT_VECTOR to ASM_BOOKE_DEC_VECTOR
	to be closer to 'official' nomenclature.
2007-12-11 07:37:00 +00:00
Till Straumann
2898f8a98f 2007-12-10 Till Straumann <strauman@slac.stanford.edu>
* shared/irq/irq_asm.S, shared/vectors/vectors.h:
	renamed ASM_BOOKE_PIT_VECTOR to ASM_BOOKE_DEC_VECTOR
	to be closer to 'official' nomenclature.
2007-12-11 07:35:40 +00:00
Till Straumann
855012618c 2007-12-10 Till Straumann <strauman@slac.stanford.edu>
* new-exceptions/e500_raw_exc_init.c: map DEC
	exception to ASM_BOOKE_DEC_VECTOR instead of ASM_DEC_VECTOR.

	Fixed wrong mapping of ASM_BOOKE_FIT_VECTOR
	(was ASM_BOOKE_PIT_VECTOR).
2007-12-11 07:34:10 +00:00
Till Straumann
d436f8c83d 2007-12-10 Till Straumann <strauman@slac.stanford.edu>
* new-exceptions/bspsupport/vectors_init.c: beautification.
2007-12-11 07:32:10 +00:00
Till Straumann
4dd7d3d268 2007-12-10 Till Straumann <strauman@slac.stanford.edu>
* new-exceptions/raw_exception.c, new_exceptions/raw_exception.h,
	new_exceptions/bspsupport/irq.c: renamed ASM_BOOKE_PIT_VECTOR
	to ASM_BOOKE_DEC_VECTOR to be closer to 'official'
	nomenclature.
2007-12-11 07:30:52 +00:00
Till Straumann
ccd92869b8 2007-12-10 Till Straumann <strauman@slac.stanford.edu>
* shared/openpic/openpic.c: fixed wrong register
	address in openpic_gettimer().
2007-12-11 06:37:19 +00:00
Till Straumann
b8982b581b 2007-12-10 Till Straumann <strauman@slac.stanford.edu>
* new-exceptions/bspsupport/ppc_exc_test.c: fixed
	wrong type in argument (signed vs. unsigned)
	compiler warning.
2007-12-11 06:35:54 +00:00
Till Straumann
a50260e8b0 2007-12-10 Till Straumann <strauman@slac.stanford.edu>
* shared/motorola/vpd.c, shared/motorola/vpd.h:
	added code (originally developed for 'beatnik')
	to read MotLoad VPD data from i2c eeprom.
2007-12-11 06:20:53 +00:00
Till Straumann
3aff05fbd3 2007-12-10 Till Straumann <strauman@slac.stanford.edu>
* shared/vectors/README.deprecated, shared/irq/README.deprecated:
	added READMEs stating that certain files should not be
	copy/paste/modified when creating new BSPs. New BSPs
	are encouraged to use the new library under
	libcpu/powerpc/new-exceptions/bspsupport.
2007-12-11 05:38:44 +00:00
Till Straumann
83d44561a5 2007-12-10 Till Straumann <strauman@slac.stanford.edu>
* Makefile.am: use shared exception/interrupt support
	from libcpu/powerpc/new-exceptions/bspsupport rather
	than ../shared/vectors , ../shared/irq

2007-12-10	Till Straumann <strauman@slac.stanford.edu>

	* shared/vectors/vectors_entry.S, motorola_powerpc/bsp_specs,
	shared/start/vectors_entry.S: moved vectors_entry.S to
	'start' subdir and made a start file rather than
	element of vectors.rel (it should always be linked but
	won't if it is the sole member of vectors.rel).
2007-12-11 05:33:15 +00:00
Till Straumann
02e6826b75 2007-12-10 Till Straumann <strauman@slac.stanford.edu>
* shared/vectors/vectors_entry.S, motorola_powerpc/bsp_specs,
	shared/start/vectors_entry.S: moved vectors_entry.S to
	'start' subdir and made a start file rather than
	element of vectors.rel (it should always be linked but
	won't if it is the sole member of vectors.rel).
2007-12-11 05:31:02 +00:00
Till Straumann
e1c30baf32 2007-12-10 Till Straumann <strauman@slac.stanford.edu>
* Makefile.am: build new-exceptions/bspsupport for
	non-mpc5xx, new-exception CPUs.
2007-12-11 05:26:28 +00:00
Till Straumann
1e55619882 2007-12-10 Till Straumann <strauman@slac.stanford.edu>
* Makefile.am, irq/irq_init.c: use vector/interrupt
	support from libcpu/powerpc/new-exceptions/bspsupport.
2007-12-11 05:22:57 +00:00
Till Straumann
bbb50590b2 2007-12-10 Till Straumann <strauman@slac.stanford.edu>
* new-exceptions/bspsupport/nested_irq_test.c: adjusted
	wrong irq name/number calculation.
2007-12-11 05:21:12 +00:00
Till Straumann
f328b69076 2007-12-10 Till Straumann <strauman@slac.stanford.edu>
* new-exceptions/bspsupport/ppc_exc_hdl.c: make sure
	RI is set in the exception frame and panic if it isn't
	(state info might have been lost). This only affects
	classic PPC.
2007-12-11 05:19:55 +00:00
Till Straumann
59a4066e01 2007-12-10 Till Straumann <strauman@slac.stanford.edu>
* new-exceptions/bspsupport/README,
	new-exceptions/bspsupport/ppc_exc_bspsupp.h
	new-exceptions/bspsupport/vectors_init.c:
	added crude test to make sure MMU maps memory as
	write-back enabled.
2007-12-11 05:18:06 +00:00
Till Straumann
bf5742a630 2007-12-09 Till Straumann <strauman@slac.stanford.edu>
* new-exceptions/bspsupport/ppc_exc_test.c,
	new-exceptions/bspsupport/vectors_init.c,
	new-exceptions/bspsupport/ppc_exc_bspsupp.h,
	new-exceptions/bspsupport/README,
	new-exceptions/bspsupport/irq_supp.h:
	Added README and some comments; now use TRAP exception
	in ppc_exc_test.c so that it works on PSIM.
2007-12-10 07:06:53 +00:00
Till Straumann
9b4c770e88 2007-12-08 Till Straumann <strauman@slac.stanford.edu>
* Makefile.am: merged shared/vme/vme_universe.c and
	shared/vme/vme_universe_dma.c into one file.
	Added support for Tsi148 driver (DMA).
2007-12-10 01:54:38 +00:00
Till Straumann
2398f74c22 2007-12-08 Till Straumann <strauman@slac.stanford.edu>
* shared/vme/vme_universe.c: fixed wrong initialization
	routine when using Tsi148 driver.
2007-12-09 07:17:16 +00:00
Till Straumann
863b0ceff3 2007-12-08 Till Straumann <strauman@slac.stanford.edu>
* shared/vme/vme_universe.c: must set DMA ops pointer
	during init.
2007-12-09 06:51:50 +00:00
Till Straumann
8388ea7629 2007-12-08 Till Straumann <strauman@slac.stanford.edu>
* Makefile.am: merged shared/vme/vme_universe.c and
	shared/vme/vme_universe_dma.c into one file.
	Added support for Tsi148 driver (DMA).
2007-12-09 06:44:51 +00:00
Till Straumann
79262a320a 2007-12-08 Till Straumann <strauman@slac.stanford.edu>
* Makefile.am: merged shared/vme/vme_universe.c and
	shared/vme/vme_universe_dma.c into one file.
2007-12-09 06:42:14 +00:00
Till Straumann
54fdd8b0ff 2007-12-08 Till Straumann <strauman@slac.stanford.edu>
* shared/vme/vme_universe.c: had erroneously deleted
	#define __INSIDE_RTEMS_BSP__
2007-12-09 06:17:54 +00:00
Till Straumann
ae93b29af7 2007-12-08 Till Straumann <strauman@slac.stanford.edu>
* vme/VMEConfig.h: added error status to
	BSP_VME_UNIVERSE_INSTALL_IRQ_MGR(err) macro.
2007-12-09 05:54:19 +00:00
Till Straumann
b83b70ae60 2007-12-08 Till Straumann <strauman@slac.stanford.edu>
* shared/vme/VMEConfig.h, shared/vme/vme_universe.c:
	added support for Tsi148 bridge; BSP can define which
	bridge driver to use from VMEConfig.h.
	Added 'err' macro parameter to BSP_VME_INSTALL_IRQ_MGR(err)
	macro so that an error status can be passed back.
2007-12-09 05:51:10 +00:00
Till Straumann
869af180c3 2007-12-08 Till Straumann <strauman@slac.stanford.edu>
* irq_supp.h: was moved from libbsp/powerpc/shared/irq to
	libcpu/powerpc/new-exceptions/bspsupport.
2007-12-09 00:17:38 +00:00
Till Straumann
7223038e1f 2007-12-08 Till Straumann <strauman@slac.stanford.edu>
* Makefile.am: irq_supp.h was moved from shared/irq to
	libcpu/powerpc/new-exceptions/bspsupport.
2007-12-09 00:14:49 +00:00
Till Straumann
b672bca70b 2007-12-08 Till Straumann <strauman@slac.stanford.edu>
* irq_supp.h: was moved from shared/irq to
	libcpu/powerpc/new-exceptions/bspsupport.
2007-12-09 00:14:06 +00:00
Till Straumann
f73c6285c1 2007-12-08 Till Straumann <strauman@slac.stanford.edu>
* new-exceptions/bspsupport/irq.c,
	new-exceptions/bspsupport/ppc_exc_bspsupp.h,
	new-exceptions/bspsupport/ppc_exc_hdl.c:
	fixed some mismatching signed/unsigned types.
2007-12-09 00:00:08 +00:00
Till Straumann
94e1931c5b 2007-12-08 Till Straumann <strauman@slac.stanford.edu>
* new-exceptions/bspsupport/, new-exceptions/bspsupport/ppc_exc.S,
	new-exceptions/bspsupport/ppc_exc_test.c,
	new-exceptions/bspsupport/vectors.h,
	new-exceptions/bspsupport/vectors_init.c,
	new-exceptions/bspsupport/irq.c,
	new-exceptions/bspsupport/ppc_exc_bspsupp.h,
	new-exceptions/bspsupport/ppc_exc_hdl.c,
	new-exceptions/bspsupport/ppc_exc_asm_macros.h,
	new-exceptions/bspsupport/nested_irq_test.c:
	New files. Added 'middleware' code for helping BSPs implement
	exception and interrupt handling and implementing the 'new'
	RTEMS IRQ API (which I personally dislike).
2007-12-08 23:43:24 +00:00
Till Straumann
4be2812f5b 2007-12-08 Till Straumann <strauman@slac.stanford.edu>
* new-exceptions/e500_raw_exc_init.c, new-exceptions/raw_exception.c,
	shared/include/cpuIdent.c, shared/include/cpuIdent.h:
	Added different kinds of 'bookE' to the ppc_cpu_is_bookE feature
	check; unfortunately...
2007-12-08 22:46:59 +00:00
Till Straumann
a9e62c242f 2007-12-08 Till Straumann <strauman@slac.stanford.edu>
* ep1a/irq/irq.c, gen5200/irq/irq.c, gen83xx/irq/irq_init.c,
	mbx8xx/irq/irq.c, mpc8260ads/irq/irq.c, mvme5500/irq/irq.c,
	psim/irq/no_pic.c, score603e/irq/irq.c, shared/irq/irq_supp.h,
	shared/irq/openpic_i8259_irq.c, virtex/irq/irq_init.c:
	let C_dispatch_irq_handler() return zero to indicate to
	low-level exception handling code that the exception
	was handled (not used yet).
2007-12-08 17:26:19 +00:00
Till Straumann
98ff623e62 2007-12-08 Till Straumann <strauman@slac.stanford.edu>
*shared/irq/irq_supp.h: removed cpp test for
	BSP_SHARED_HANDLER_SUPPORT; BSPs using irq_supp.h
	*must* implement shared handlers.
2007-12-08 17:23:55 +00:00
Till Straumann
7b2cb2234f 2007-12-07 Till Straumann <strauman@slac.stanford.edu>
* Makefile.am: must not add e500_raw_exc_init.c to
	xyz_SOURCES for mpc5xx
2007-12-07 18:42:40 +00:00
Till Straumann
2a90ae7522 2007-12-06 Till Straumann <strauman@slac.stanford.edu>
* shared/openpic/openpic.c, shared/openpic/openpic.h:
	added routines to set timer period and interupt mask
	and to read current count.
2007-12-07 09:10:55 +00:00
Till Straumann
545ae5ba03 2007-12-06 Till Straumann <strauman@slac.stanford.edu>
* virtex/irq/irq_init.c: use new ASM_xxx_VECTOR names.
2007-12-07 01:15:50 +00:00
Joel Sherrill
1ee415b3ee 2007-12-06 Joel Sherrill <joel.sherrill@OARcorp.com>
* irq/irq_init.c: Add missing vectDesc variable.
2007-12-06 22:04:27 +00:00
Joel Sherrill
68fc9e820f 2007-12-06 Joel Sherrill <joel.sherrill@oarcorp.com>
* include/mpc5200.h: Expand tabs.
2007-12-06 22:00:34 +00:00
Till Straumann
f6a6970668 2007-12-06 Till Straumann <strauman@slac.stanford.edu>
* shared/vectors/vectors_init.c: replaced
	switch ( current_ppc_cpu ) { } check by feature check.
2007-12-06 21:10:25 +00:00
Till Straumann
76a5a3ccaf 2007-12-06 Till Straumann <strauman@slac.stanford.edu>
* shared/include/cpuIdent.h, shared/include/cpuIdent.c:
	added feature check for 603 'TLBMISS exception GPRS shadowing'.
2007-12-06 21:03:46 +00:00