Commit Graph

8409 Commits

Author SHA1 Message Date
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
Till Straumann
6456706db3 2007-12-06 Till Straumann <strauman@slac.stanford.edu>
* shared/irq/irq_asm.S, shared/vectors/vectors.S:
	Replaced use of hardcoded PPC_EXC_MSR_BITS by a
	run-time method to determine these bits (use settings
	effective before exception occurred).
	Replaced use of hardcoded ASM_VECTORS_CRITICAL by
	'bsp_raw_vector_is_405_critical' variable.
2007-12-06 19:45:27 +00:00
Till Straumann
eb8420f7f2 2007-12-06 Till Straumann <strauman@slac.stanford.edu>
* new-exceptions/raw_exception.c, new-exceptions/raw_exception.h:
	Removed all #ifdef <cpu_flavor>. All exception vectors are now
	always defined.
	Changed implementation of <cpu>_vector_is_valid() from 'case'
	statements to table lookup.
	Replaced 'ASM_VECTORS_CRITICAL' by a variable
	'bsp_raw_vector_is_405_critical' which is set at run-time.
	Removed PPC_MSR_EXC_BITS. The exception handling code
	(libbsp/shared/vectors/vectors.S and ../irq/irq_asm.S) now
	has a run-time check for these bits.
	Both files are now free of #if <cpu_flavor> constructs.
2007-12-06 19:42:47 +00:00
Joel Sherrill
6eaa3f5a13 2007-12-06 Joel Sherrill <joel.sherrill@OARcorp.com>
* shared/include/grcan_spwrtc.h: Removed.
2007-12-06 14:21:28 +00:00
Till Straumann
694c00cb4e 2007-12-05 Till Straumann <strauman@slac.stanford.edu>
* Makefile.am, configure.ac, preinstall.am,
	new-exceptions/e500_raw_exc_init.c: Started adding
	support for e500 CPU. Most stuff is borrowed from mpc6xx.
2007-12-06 00:21:07 +00:00
Till Straumann
a52ab9e1fb 2007-12-05 Till Straumann <strauman@slac.stanford.edu>
* rtems/powerpc/powerpc.h: added a #ifdef __ppc_generic
	branch. The goal is eventually to make this the starting
	point for cleanup (remove as many branches as possible;
	replace by run-time tests if necessary).
2007-12-06 00:07:21 +00:00
Joel Sherrill
af99a74305 2007-12-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* include/bsp.h: Correct BSP specific Idle thread support.
2007-12-05 22:26:05 +00:00
Joel Sherrill
9e602b0ad9 2007-12-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* irq/irq_init.c: Spacing.
2007-12-05 22:24:05 +00:00
Joel Sherrill
7302f4c51f 2007-12-05 Joel Sherrill <joel.sherrill@OARcorp.com>
* new-exceptions/raw_exception.c: Conditionalize call to
	e500_setup_raw_exceptions() since that is not even in the tree yet.
2007-12-05 21:50:47 +00:00
Joel Sherrill
736503e97c 2007-12-05 Joel Sherrill <joel.sherrill@OARcorp.com>
* new-exceptions/raw_exception.c: Conditionalize some BOOKE vectors.
2007-12-05 21:29:41 +00:00
Till Straumann
bc1077489c 2007-12-05 Till Straumann <strauman@slac.stanford.edu>
* shared/irq/irq_supp.h: removed stray '*/'. Removed
	inclusion of <stdlib.h> which is unnecessary and broke
	if_dc in an obscure way (due to malloc/free redefinition
	in the networking code).
2007-12-05 19:49:37 +00:00
Joel Sherrill
9166e1ddac 2007-12-05 Daniel Hellstrom <daniel@gaisler.com>
* shared/include/ambapp.h: Sync head and 4.8 branch.
2007-12-05 15:47:16 +00:00
Till Straumann
464ba4d040 2007-12-05 Till Straumann <strauman@slac.stanford.edu>
* new-exceptions/raw_exception.c, new-exceptions/raw_exception.h:
	Added typedef for exception classes (classic, critical, ...
	synchronous / asynchronous). ppc_vector_is_valid() now returns
	the appropriate class.
2007-12-05 09:29:03 +00:00
Till Straumann
698c33623e 2007-12-05 Till Straumann <strauman@slac.stanford.edu>
* shared/irq/irq_asm.S, shared/vectors/vectors.S,
	shared/vectors/vectors.h, shared/vectors/vectors_init.c:
	Converted exception vector names to new ones
	(qualified by <cpu_type> if non-std ppc exceptions).
2007-12-05 08:45:36 +00:00
Till Straumann
b9ce916c29 2007-12-05 Till Straumann <strauman@slac.stanford.edu>
* irq/ipic.c, irq/irq_init.c:
	Converted exception vector names to new ones
	(qualified by <cpu_type> if non-std ppc exceptions).
2007-12-05 08:41:51 +00:00
Till Straumann
586c15a5f8 2007-12-05 Till Straumann <strauman@slac.stanford.edu>
* irq/irq_init.c, irq_asm.S:
	Converted exception vector names to new ones
	(qualified by <cpu_type> if non-std ppc exceptions).
2007-12-05 08:41:04 +00:00
Till Straumann
0fb0eb034c 2007-12-05 Till Straumann <strauman@slac.stanford.edu>
* new-exceptions/raw_exception.c: made all <cpu>_vector_is_valid()
	subroutines that are called from ppc_vector_is_valid() 'static'.
2007-12-05 08:35:55 +00:00
Till Straumann
7df69c3716 2007-12-05 Till Straumann <strauman@slac.stanford.edu>
* new-exceptions/raw_exception.c, new-exceptions/raw_exception.h:
	Qualified all exception vector symbols that are only defined
	#ifdef <cpu_flavor> with <cpu_flavor> in the symbol name.
	If the special flavor __ppc_generic is effective the ALL
	vector symbols are available and ppc_vector_is_valid() works
	for all supported CPUs (run-time check).
	This is work towards a #ifdef <cpu_flavor> free libcpu and
	exception framework.
2007-12-05 08:33:11 +00:00
Till Straumann
1051054f84 2007-12-04 Till Straumann <strauman@slac.stanford.edu>
* export BSP_commandline_string variable.
2007-12-05 06:39:17 +00:00
Till Straumann
1be7c55f75 2007-12-04 Till Straumann <strauman@slac.stanford.edu>
* shared/flash/flash.c: added lazy init of driver
	from BSP_flashWriteFile().
2007-12-05 06:34:10 +00:00
Till Straumann
7e53d09569 2007-12-04 Till Straumann <strauman@slac.stanford.edu>
* irq/irq_init.c: removed unnecessary code (alredy
	done by shared/irq/irq.c).
2007-12-05 06:03:57 +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
c93b6ec4e0 2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* include/bsp.h: 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:50 +00:00
Joel Sherrill
d34d8692b6 2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* include/bsp.h, startup/bspstart.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:26 +00:00
Joel Sherrill
7321ff0df2 2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* shared/startup/bspstart.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:10 +00:00
Joel Sherrill
cafa2c5d05 2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* startup/bspstart.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:03 +00:00
Joel Sherrill
99856a3360 2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, include/bsp.h: 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:21:53 +00:00
Joel Sherrill
56ed8f0fa9 2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* startup/bspstart.c, startup/bspstart.c.nocache: 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:21:51 +00:00
Joel Sherrill
afce764d4c 2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, include/bsp.h, startup/bspstart.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:21:41 +00:00
Joel Sherrill
2692a2044c 2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* console/console.c, include/bsp.h, startup/bspstart.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:21:28 +00:00
Joel Sherrill
077e302091 2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* shared/bspstart.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:20:57 +00:00
Joel Sherrill
7f3c6cee09 2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* amba/amba.c, clock/ckinit.c, console/console.c, include/bsp.h,
	startup/bspstart.c, timer/timer.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:20:55 +00:00
Joel Sherrill
2804a3e71c 2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, startup/bspstart.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:20:43 +00:00
Joel Sherrill
c8e63e9797 2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* startup/bspstart.c, startup/cpu.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:19:55 +00:00
Joel Sherrill
4216c573e3 2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* mpc5xx/console-generic/console-generic.c, mpc8260/timer/timer.c,
	new-exceptions/cpu.c, old-exceptions/cpu.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:19:37 +00:00
Joel Sherrill
5ca28f6ae6 2007-12-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems.adb: Add missing semicolon.
2007-12-04 22:16:17 +00:00
Joel Sherrill
e872f07bc8 2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am: Add bsppredriverhook.c.
	* irq/irq.h: Attempt to correct definition of
	BSP_CPM_IRQ_LOWEST_OFFSET.
2007-12-04 21:03:34 +00:00
Thomas Doerfler
7edabafe3c added missing mpc83xx/spi driver 2007-12-04 20:37:06 +00:00
Thomas Doerfler
d4d603604c added missing file 2007-12-04 20:36:31 +00:00
Joel Sherrill
e034b46e4c 2007-12-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* clock/clock.c: Fix typo.
2007-12-04 17:39:12 +00:00
Joel Sherrill
d3b840b869 2007-12-03 Joel Sherrill <joel.sherrill@oarcorp.com>
* shared/irq/irq.c: Spacing.
2007-12-03 22:39:46 +00:00
Joel Sherrill
2ae35c2b23 2007-12-03 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, irq/no_pic.c: Spacing.
2007-12-03 22:37:19 +00:00