Commit Graph
18544 Commits
Author SHA1 Message Date
Joel Sherrill 2906c7a5b4 2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* rtems/new-exceptions/cpu.h, rtems/old-exceptions/cpu.h,
	rtems/score/cpu.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:19:05 +00:00
Joel Sherrill c610850ede 2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* tmoverhd/testtask.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:18:39 +00:00
Joel Sherrill a1f37a0f6e 2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* spsize/size.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:18:35 +00:00
Joel Sherrill 66c50e281a 2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* cpu_supplement/arm.t, cpu_supplement/i386.t, cpu_supplement/m68k.t,
	cpu_supplement/mips.t, cpu_supplement/powerpc.t, cpu_supplement/sh.t,
	cpu_supplement/sparc.t, cpu_supplement/tic4x.t, porting/cpuinit.t,
	user/conf.t, user/init.t: 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:18:30 +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 eb5d942ad5 2007-12-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* sp09/screen03.c, spsize/size.c: Builds again after CPU Table changes.
2007-12-04 16:03:06 +00:00
Joel Sherrill 113e85123f 2007-12-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* sapi/include/rtems/config.h: Add accessory macros for Configuration
	Table fields merged from CPU Table.
2007-12-04 16:02:40 +00:00
Till Straumann 8dc42d3e8b 2007-12-03 Till Straumann <strauman@slac.stanford.edu>
* rtems/score/cpu.h: Added comment that GDB patch sim/2376
	is needed for reading the time-base with the new (more
	portable) method.
2007-12-03 23:20:30 +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
Joel Sherrill b75378abe7 2007-12-03 Joel Sherrill <joel.sherrill@oarcorp.com>
* irq/irq.c: Spacing.
2007-12-03 22:36:08 +00:00
Joel Sherrill 12eebb497a 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* bsppredriverhook.c: New file.
2007-12-03 22:27:19 +00:00
Joel Sherrill 8b5d31fa97 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* mpc5xx/console-generic/console-generic.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:53 +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 558bc253bc 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, startup/bspstart.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:33 +00:00
Joel Sherrill 9265969713 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* include/bsp.h, startup/bspstart.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:05 +00:00
Joel Sherrill faf168fe82 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* startup/bspstart.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:03 +00:00
Joel Sherrill e13e90cabc 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* console/console.c, startup/bspstart.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:25:10 +00:00
Joel Sherrill fee125b364 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* shared/startup/bspstart.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:24:55 +00:00
Joel Sherrill b5e7018613 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, include/bsp.h, startup/bspstart.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:24:44 +00:00
Joel Sherrill 8e1b35fb0d 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* preinstall.am: 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:24:40 +00:00
Joel Sherrill bb341ca161 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* startup/bspstart.c, startup/bspstart.c.nocache: 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:24:38 +00:00
Joel Sherrill 7486c65fdb 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* shared/bspstart.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:24:11 +00:00
Joel Sherrill 03bfdbb39c 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* amba/amba.c, startup/bspstart.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:24:07 +00:00
Joel Sherrill 2f1d801fd3 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am: 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:24:05 +00:00
Joel Sherrill 976162a69f 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* libcsupport/src/malloc.c, libmisc/monitor/mon-command.c,
	posix/preinstall.am, posix/include/rtems/posix/cond.h,
	posix/include/rtems/posix/mqueue.h,
	posix/include/rtems/posix/mutex.h,
	posix/include/rtems/posix/pthread.h,
	posix/include/rtems/posix/semaphore.h, posix/src/conddestroy.c,
	posix/src/mutexdestroy.c, posix/src/mutexinit.c,
	posix/src/mutexsetprioceiling.c, posix/src/mutexunlock.c,
	sapi/include/confdefs.h, sapi/include/rtems/config.h,
	sapi/include/rtems/init.h, sapi/include/rtems/sptables.h,
	sapi/src/exinit.c, score/include/rtems/system.h,
	score/include/rtems/score/mpci.h, score/src/mpci.c,
	score/src/thread.c, score/src/threadcreateidle.c,
	score/src/threadstackallocate.c, score/src/threadstackfree.c,
	score/src/wkspace.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:23:13 +00:00
Joel Sherrill 3e06654040 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* cpu_supplement/arm.t, cpu_supplement/i386.t, cpu_supplement/m68k.t,
	cpu_supplement/mips.t, cpu_supplement/powerpc.t, cpu_supplement/sh.t,
	cpu_supplement/sparc.t, cpu_supplement/tic4x.t, user/conf.t: 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:23:02 +00:00
Joel Sherrill 4b89ba70ea 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* rtems/score/cpu.h: 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:22:55 +00:00
Joel Sherrill 282048a516 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* rtems/new-exceptions/cpu.h, rtems/old-exceptions/cpu.h: 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:22:01 +00:00
Joel Sherrill bfc9b02386 2007-12-03 Joel Sherrill <joel.sherrill@oarcorp.com>
* shared/include/cpuIdent.h: Correct conditionals and includes.
2007-12-03 15:45:20 +00:00
Joel Sherrill 1b1aca1fdb 2007-12-03 Joel Sherrill <joel.sherrill@oarcorp.com>
* shared/irq/irq.c, shared/irq/irq_supp.h: Correct conditionals and
	includes.
2007-12-03 15:44:59 +00:00
Chris Johns dec8f84375 2007-12-03 Chris Johns <chrisj@rtems.org>
* libmisc/shell/shell.h: Added comments for the parameters to the
	shell_init function.
	* libmisc/shell/shell.c: Only set cflags if tcflags is
	non-zero. This means the shell can use the current cflags settings
	and the application does not need to know the baudrate etc.
	* libmisc/capture/capture.h: Fix the comment.
2007-12-03 02:22:35 +00:00
Chris Johns 7ace3828e5 2007-12-03 Chris Johns <chrisj@rtems.org>
* console/console.c: Set the baud rate for stdin to 19200 when
	opening the console. This is the default rate for the dbug
	monitor.
	* gdb-init: New.
2007-12-03 02:16:25 +00:00
Chris Johns 7b57da65ad 2007-11-29 Chris Johns <chrisj@rtems.org>
* iostream/Makefile.am: Change the executable name so it does not
      create a file which is the same name as the standard header file.
      * iostream/system.h: Need to increase the number of semaphores for
      the libstdc++ runtime.
2007-12-03 02:11:16 +00:00
Till Straumann d62e807de8 2007-12-02 Till Straumann <strauman@slac.stanford.edu>
* vmeUniverse/vmeUniverse.c, vmeUniverse/vmeTsi148.c:
	silenced compiler warnings caused by type changes
	in byteorder.h (volatile unsigned * -> volatile uint32_t *)
2007-12-02 23:35:56 +00:00
Till Straumann c10dc130f9 2007-12-02 Till Straumann <strauman@slac.stanford.edu>
* shared/irq/i8259.c, shared/irq/irq.h, shared/irq/irq_supp.h,
	shared/irq/openpic_i8259_irq.c: BSP_disable_irq_at_pic(),
	openpic_disable_irq(), BSP_irq_disable_at_i8259s() now return
	0/1 if irq was disabled/enabled prior to disabling.
	irq_supp.h now exports a inline helper routine for scanning
	a list of shared handlers; to be used by PIC drivers.
2007-12-02 21:49:07 +00:00
Till Straumann daccc4ad33 2007-12-02 Till Straumann <strauman@slac.stanford.edu>
* irq/no_pic.c: use new inline routine exported by
	shared/irq/irq_supp.h for scanning the handler list.
2007-12-02 21:43:54 +00:00
Till Straumann b1a2bbae5d 2007-12-02 Till Straumann <strauman@slac.stanford.edu>
* irq/irq_init.c: removed irrelevant comment.
2007-12-02 21:42:41 +00:00
Till Straumann 80d2e60b30 2007-12-02 Till Straumann <strauman@slac.stanford.edu>
* irq/irq_init.c: added new args to openpic_init().
	This BSP probably needs them (8245 has an EPIC).
	I would be surprised if the PCI interrupts with the
	old code actually worked...
2007-12-02 21:39:17 +00:00
Till Straumann d7a2009a63 2007-12-02 Till Straumann <strauman@slac.stanford.edu>
* shared/openpic/openpic.c shared/openpic/openpic.h,
	shared/irq/irq_init.c: added more parameters to
	openpic_init() so that more details of the configuration
	can be overridden/set from the BSP. Moved setup of
	the EPIC-specific EOI delay from BSP code into openpic_init()
	using the new 'epic_freq' parameter.
2007-12-02 21:35:49 +00:00
Till Straumann a3ae58967f 2007-12-02 Till Straumann <strauman@slac.stanford.edu>
* shared/openpic/openpic.c, shared/openpic/openpic.h:
	- eliminated conditional compilation (#ifdef mpc8240)
	  The difference in register-layout between the EPIC
	  and the std. openPIC is handled by an offset parameter
	  which can be set at run-time (initialization) with
	  a new routine 'openpic_set_src_offset()'.
	- allow BSP to define symbol BSP_OPEN_PIC_BIG_ENDIAN
	  which builds the driver for big-endian register access
	  (mpc8540).
	- openpic_disable_irq() now returns the old state so
	  that it can be restored later.
2007-12-02 20:46:00 +00:00
Till Straumann f2783292a6 2007-12-01 Till Straumann <strauman@slac.stanford.edu>
* shared/irq/openpic_i8259_irq.c:
	- conditionally define 'irq_mask_or_tbl' only if
	  BSP_PCI_ISA_BRIDGE_IRQ is defined.
	- use _ISR_Get_level() / _ISR_Set_level() for re-enabling
	  interrupts rather than messing with MSR directly;
	  these macros:
	    o implement compiler memory barrier
		o will handle multiple levels (e500 'critical' interrupts)
		  if they are ever supported.
	- decrementer irqs are also shareable - added list traversal.
2007-12-01 21:59:20 +00:00
Till Straumann 34fb363561 2007-12-01 Till Straumann <strauman@slac.stanford.edu>
* shared/irq/irq_supp.h: Make sure BSP_SHARED_HANDLER_SUPPORT
	is set. The shared irq manager supports shared interrupts
	(but requires also that the PIC-driver supports them by
	traversing the list of shared handlers).
	Declare C_dispatch_irq_handler() which must be defined
	(like the other routines declared in this header) by the
	PIC-driver.
2007-12-01 21:35:27 +00:00
Till Straumann 2cb549f8dc 2007-12-01 Till Straumann <strauman@slac.stanford.edu>
* shared/clock/p_clock.c: (run-time) check for e500-cpu
	and install different ISR for that type of CPU.
2007-12-01 21:32:49 +00:00
Till Straumann 4f2d5f021b 2007-12-01 Till Straumann <strauman@slac.stanford.edu>
* shared/pci/detect_raven_bridge.c: use ifdef mvme2100
	rather than ifdef mpc824x so that we don't depend on
	compile-time CPU flavor. Eventually, this should become
	a run-time check.
2007-12-01 21:28:37 +00:00
Till Straumann 89a1112966 2007-12-01 Till Straumann <strauman@slac.stanford.edu>
* shared/vectors/vectors.h: Give the BSP_Exception_frame
	struct a name.
2007-12-01 21:25:39 +00:00