Commit Graph

15679 Commits

Author SHA1 Message Date
Till Straumann
84a25d82ec 2008-07-16 Till Straumann <strauman@slac.stanford.edu>
* new-exceptions/bspsupport/vectors_init.c: added
	features to C_exception_handler() (the default global
	handler):
	 - try to catch recursion
	 - print info about context where the exception occurred
	   (ISR or task with task ID).
	 - suspend offending task rather than spinning forever.
2008-07-16 23:13:24 +00:00
Till Straumann
03542996dd 2008-07-16 Till Straumann <strauman@slac.stanford.edu>
* new-exceptions/bspsupport/vectors_init.c: must not
	align start of stack downwards (we don't 'own' memory
	below start). Instead, use original boundaries but
	align the stack pointer as required.

	Added test to verify that R13 was loaded with _SDA_BASE_
	during early initialization (low-level assembly code
	relies on it).
2008-07-16 23:10:55 +00:00
Till Straumann
6ce3f7b7e2 2008-07-16 Till Straumann <strauman@slac.stanford.edu>
* new-exceptions/cpu.c: propagate R2 to all task contexts
	even if the ABI is SVR4. Cannot hurt...
2008-07-16 22:04:06 +00:00
Till Straumann
d60239f6c8 2008-07-16 Till Straumann <strauman@slac.stanford.edu>
* new-exceptions/cpu.c: use ppc_interrupt_get_disable_mask()
	to determine which bits to set/clear from _CPU_Context_Initialize().
2008-07-16 21:57:55 +00:00
Till Straumann
3d28361d19 2008-07-16 Till Straumann <strauman@slac.stanford.edu>
* score/cpu/powerpc/rtems/new-exceptions/cpu.h:
	use ppc_interrupt_get_disable_mask() to determine
	which bits to set/clear from _CPU_ISR_Set_level().
2008-07-16 21:52:04 +00:00
Till Straumann
441c930dc1 2008-07-16 Till Straumann <strauman@slac.stanford.edu>
* score/cpu/powerpc/rtems/powerpc/registers.h:
	added ppc_interrupt_get_disable_mask() inline function.
2008-07-16 21:47:04 +00:00
Till Straumann
5166513cf5 2008-07-16 Till Straumann <strauman@slac.stanford.edu>
* new-exceptions/bspsupport/ppc_exc_asm_macros.h: Added
	a test to TEST_LOCK_crit so that a context switch is
	always prevented if MSR_CE is not set in the interrupt mask.
	(Support mode where the user wants to leave MSR_CE always enabled
	but abstains from calling OS primitives from the exception
	handler.)
2008-07-16 21:44:14 +00:00
Till Straumann
7d453cf211 2008-07-16 Till Straumann <strauman@slac.stanford.edu>
* shared/include/powerpc-utility.h: Added
	GET_INTERRUPT_MASK macro.
2008-07-16 21:38:05 +00:00
Joel Sherrill
c702dd809e 2008-07-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/shell/shellconfig.h, libmisc/stackchk/stackchk.h: Fix typos.
2008-07-16 20:32:23 +00:00
Joel Sherrill
9c325fb254 2008-07-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* mpc6xx/clock/c_clock.c: Add fast idle.
2008-07-16 20:22:20 +00:00
Joel Sherrill
10f095c83f 2008-07-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* configure.ac: Add fast idle.
2008-07-16 20:22:00 +00:00
Joel Sherrill
798ff5a8ea 2008-07-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/shell/shell.c, libmisc/shell/shell.h: New argument sequence
	for rtems_shell_init(). This makes it possible to run the shell
	forever or invoke it from a program as a subroutine, have a user
	enter commands, and wait for it to exit.
2008-07-16 17:17:29 +00:00
Joel Sherrill
c2a5939f1b 2008-07-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* shell/confinit.t: New argument sequence for rtems_shell_init().
2008-07-16 17:13:35 +00:00
Joel Sherrill
72cb077f39 2008-07-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* fileio/init.c: New argument sequence for rtems_shell_init(). Also
	split on multiple lines and document each parameter.
2008-07-16 17:08:41 +00:00
Joel Sherrill
03b655aaee 2008-07-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* sp43/init.c, sp43/sp43.scn: Add call to rtems_get_version_string().
2008-07-16 16:48:51 +00:00
Joel Sherrill
33749f0413 2008-07-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* acinclude.m4: Regeneration to add new BSPs.
2008-07-16 14:46:57 +00:00
Joel Sherrill
4d47256b4b 2008-07-15 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/include/rtems.h, sapi/Makefile.am: Add simple helper to get
	RTEMS version string.
	* sapi/src/getversionstring.c: New file.
2008-07-15 22:56:45 +00:00
Joel Sherrill
fc1b5cf558 2008-07-15 Joel Sherrill <joel.sherrill@oarcorp.com>
* .cvsignore, include/.cvsignore: New files.
2008-07-15 22:55:15 +00:00
Joel Sherrill
fa379b086c 2008-07-15 Joel Sherrill <joel.sherrill@oarcorp.com>
* bootcard.c: Must include bsp.h or bspopts.h or we cannot know if
	boot_card() handles RAM allocation.
2008-07-15 22:22:09 +00:00
Joel Sherrill
4dc6a4684f 2008-07-15 Joel Sherrill <joel.sherrill@OARcorp.com>
* user/barrier.t, user/clock.t, user/dpmem.t, user/msg.t, user/part.t,
	user/region.t, user/rtmon.t, user/sem.t, user/task.t, user/timer.t:
	Correct documentation typos noticed and thankfully reported by
	Fabrício de Novaes Kucinskis <fabricio@dea.inpe.br>
2008-07-15 21:49:31 +00:00
Joel Sherrill
18e6e824a6 Spacing. 2008-07-15 13:32:12 +00:00
Thomas Doerfler
574fb67510 updated gen83xx BSP
updated haleakala BSP
added MPC55xx BSP
2008-07-14 16:15:28 +00:00
Thomas Doerfler
3c6fe2e7f9 added haleakala BSP contributed by Michael Hamel 2008-07-14 08:46:06 +00:00
Thomas Doerfler
9ec9123344 corrections in display driver 2008-07-14 08:45:32 +00:00
Ralf Corsepius
fcd4a7c8fa Cleanup. 2008-07-14 06:02:09 +00:00
Ralf Corsepius
1be83cdc57 Cleanup. 2008-07-14 05:53:43 +00:00
Ralf Corsepius
911e38a05a New. 2008-07-14 05:33:07 +00:00
Ralf Corsepius
a4f16e611a Regenerate. 2008-07-14 05:32:41 +00:00
Ralf Corsepius
46b703810e Remove. 2008-07-14 05:19:18 +00:00
Thomas Doerfler
054f3966bd added BSP for mcf548x 2008-07-11 10:09:05 +00:00
Thomas Doerfler
224aebb3b8 added BSP to m68k
adapted PPC exception code
2008-07-11 10:07:00 +00:00
Thomas Doerfler
9ab94a1fc7 made buffer for write calls constant 2008-07-11 10:05:53 +00:00
Thomas Doerfler
e0b8176076 added support for mcf548x 2008-07-11 10:05:13 +00:00
Thomas Doerfler
767cdd8470 adapted for modified exception code 2008-07-11 10:04:40 +00:00
Thomas Doerfler
80a0ae8248 add display driver for HCMS* SPI displays 2008-07-11 10:03:19 +00:00
Thomas Doerfler
25a92bc1ed adapted powerpc exception code 2008-07-11 10:02:12 +00:00
Thomas Doerfler
a86f3aac96 adapted powerpc BSPs to new exception code 2008-07-11 10:01:37 +00:00
Thomas Doerfler
69effbb4e1 added variant to gen68360 BSP
added genmcf548x BSP
2008-07-11 10:00:41 +00:00
Thomas Doerfler
1898d72d9c added mcf548x BSP support 2008-07-11 09:59:48 +00:00
Till Straumann
457f5901e6 2008-07-10 Till Straumann <strauman@slac.stanford.edu>
* shared/flash/spansionFlash.c: removed "m" memory
	operands.
2008-07-10 23:24:58 +00:00
Till Straumann
dfe42ba59c 2008-07-10 Till Straumann <strauman@slac.stanford.edu>
* mpc6xx/mmu/pte121.c: use general "memory" clobber
	rather than memory input operand in inline assembly
	("m" doesn't do what the manual says; see discussion
	on gcc mailing list around 2008/3/30)
2008-07-10 22:03:27 +00:00
Till Straumann
e1df032b95 2008-07-10 Till Straumann <strauman@slac.stanford.edu>
* ChangeLog, mpc8xx/clock/clock.c, ppc403/clock/clock.c,
	ppc403/irq/ictrl.h, rtems/powerpc/powerpc.h:
	Removed all macro definitions which depended on
	the compiler defining a PPC CPU-model dependent
	symbol from files in cpukit.
	Macros which were not used by cpukit have been
	moved to libcpu/powerpc/rtems/powerpc/powerpc.h.
2008-07-10 21:51:55 +00:00
Till Straumann
06aab392f0 2008-07-10 Till Straumann <strauman@slac.stanford.edu>
* cpukit/score/cpu/powerpc/rtems/new-exceptions/cpu.h,
	cpukit/score/cpu/powerpc/rtems/score/cpu.h,
	cpukit/score/cpu/powerpc/rtems/score/powerpc.h:
	Removed all macro definitions which depended on
	the compiler defining a PPC CPU-model dependent
	symbol.
	Macros which were not used by cpukit have been
	moved to libcpu/powerpc/rtems/powerpc/powerpc.h.
2008-07-10 21:48:24 +00:00
Till Straumann
d71e95a5aa *** empty log message *** 2008-07-10 21:39:44 +00:00
Till Straumann
8bac4851a6 2008-07-10 Till Straumann <strauman@slac.stanford.edu>
* new-exceptions/bspsupport/ppc_exc_asm_macros.S,
	new-exceptions/bspsupport/ppc_exc_bspsupp.h,
	new-exceptions/bspsupport/ppc_exc_hdl.c,
	new-exceptions/bspsupport/vectors_init.c:
	fixed and enabled stack-switching algorithm which figures out
	if we already run on the ISR stack rather than relying on the
	_ISR_Nest_level.

	Added 'ppc_exc_crit_always_enabled' variable which defines
	the semantics of critical interrupts. Added a test to
	TEST_LOCK_crit so that calling ppc_exc_wrapup() (and
	possibly the dispatcher) is always skipped if the BSP/user
	wants to leave critical interrupts always enabled (at the
	expense of having no OS support).

	changed TEST_LOCK_mchk so that asynchronous machine-check
	handlers never call ppc_exc_wrapup() (and the dispatcher).
	We don't want to disable MSR_ME ever (to avoid checkstops)
	and hence asynchronous MEs must not use OS services anyways.

	added and commented new variables 'ppc_exc_intr_stack_size'
	'ppc_exc_crit_always_enabled'.
2008-07-10 21:31:06 +00:00
Till Straumann
38f5e616fc 2008-07-10 Till Straumann <strauman@slac.stanford.edu>
* new-exceptions/bspsupport/ppc_exc.S: must disable
	interrupts prior to restoring SRRs (thanks to Sebastian Huber)
2008-07-10 21:29:27 +00:00
Till Straumann
055173d46a 2008-07-10 Till Straumann <strauman@slac.stanford.edu>
* new-exceptions/bspsupport/README: added more information
2008-07-10 21:28:38 +00:00
Joel Sherrill
2c3a9c1679 2008-07-10 Joel Sherrill <joel.sherrill@OARcorp.com>
* user/.cvsignore: Add chains.texi.
2008-07-10 15:31:09 +00:00
Joel Sherrill
a5d5c746f0 2008-07-10 Joel Sherrill <joel.sherrill@OARcorp.com>
* include/rtems/status-checks.h: Fix style.
2008-07-10 15:05:31 +00:00
Thomas Doerfler
eed0491225 added irq-extension.h declarations 2008-07-10 12:56:31 +00:00