Commit Graph

15661 Commits

Author SHA1 Message Date
Joel Sherrill
6c71b25364 2008-07-23 Joel Sherrill <joel.sherrill@oarcorp.com>
* sapi/include/confdefs.h, score/src/threadcreateidle.c: Idle thread
	body is now completely configured via the Configuration table.
2008-07-23 17:25:31 +00:00
Thomas Doerfler
be78809c94 usee inttypes.h for output format specifiers 2008-07-23 08:03:28 +00:00
Till Straumann
36ba3fc4d1 2008-07-22 Till Straumann <strauman@slac.stanford.edu>
* irq/irq_init.c, include/bsp.h:
	define BSP_PPC403_CLOCK_HOOK_EXCEPTION
	so that we hook the timer exception rather than going
	through the interrupt dispatcher.
2008-07-23 06:54:18 +00:00
Till Straumann
b7d1f290d7 2008-07-22 Till Straumann <strauman@slac.stanford.edu>
* ppc403/clock/clock.c: Added (conditionally compiled)
	code so that a BSP can choose to hook the timer exception
	directly rather than going through the interrupt dispatcher.
2008-07-23 06:50:00 +00:00
Till Straumann
479f25550b 2008-07-21 Till Straumann <strauman@slac.stanford.edu>
* startup/bspstart.c: Removed MSR_CE from interrupt
	mask - this was set for testing but should not be
	in the mask by default.
2008-07-22 06:11:34 +00:00
Till Straumann
aee685a3df 2008-07-21 Till Straumann <strauman@slac.stanford.edu>
* Makefile.am, preinstall.am, irq/irq_init.c:
	Use low-level exception handling support from
	new-exceptions/bspsupport.
2008-07-22 05:52:05 +00:00
Till Straumann
336495b9c0 2008-07-21 Till Straumann <strauman@slac.stanford.edu>
* startup/bspstart.c: Removed SPRG0 warning - this BSP
	is OK.

	Use interrupt stack limits from linker script.

	No need to reserve space beyond '_end'. linkcmds now
	reserves space below '_end'.

	Use low-level exception handling support from
	new-exceptions/bspsupport.
2008-07-22 05:50:57 +00:00
Till Straumann
e1095fc521 2008-07-21 Till Straumann <strauman@slac.stanford.edu>
* dlentry/dlentry.S: load R13 with _SDA_BASE_ so that
	SVR4-ABI access of short data area works. No support
	for R2/sdata2/eabi, so far but that would be easy
	(atm R2 is loaded with got address IIRC).
2008-07-22 05:47:31 +00:00
Till Straumann
54b617a0ab 2008-07-21 Till Straumann <strauman@slac.stanford.edu>
* startup/linkcmds: fixed sdata/sbss areas -- these
	must be contiguous for SVR4 complicant access via R13.
	Use kludged layout so that sbss, bss, sbss2 are all
	contiguous and zeroed by dlentry.S.

	Provide _SDA_BASE_ and _SDA2_BASE_ for loading R13 (and
	R2 if anyone wants to use EABI).

	Make sure interrupt stack is never in heap area by
	moving it below '_end'.

	Provide symbols for start + end of interrupt stack.
2008-07-22 05:44:58 +00:00
Till Straumann
c607d50e70 2008-07-21 Till Straumann <strauman@slac.stanford.edu>
* console/consolelite.c: use base address from RTEMS_XPARAMETERS_H
	rather than hardcoded hex number.
2008-07-22 05:30:21 +00:00
Till Straumann
13512ec229 2008-07-21 Till Straumann <strauman@slac.stanford.edu>
* new-exceptions/raw_exception,h,
	new-exceptions/raw_exception.c: Added more vectors for PPC405:
	watchdog, fpu-unavail, apu-unavail, itlbmiss, dtlbmiss, debug.
2008-07-21 20:38:06 +00:00
Joel Sherrill
f45169a95f 2008-07-18 Joel Sherrill <joel.sherrill@oarcorp.com>
* startup/bspstart.c: This BSP is OK with SPRG0.
2008-07-18 22:10:26 +00:00
Till Straumann
e620c556a3 2008-07-18 Till Straumann <strauman@slac.stanford.edu>
* startup/bspstart.c: removed warning about SPRG0
	now being used for IRQ mask; this BSP is OK.
2008-07-18 19:09:30 +00:00
Joel Sherrill
f5119be40a 2008-07-18 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1291/cpukit
	* psx05/init.c, psxmsgq01/init.c: As part of addressing timeouts and
	POSIX services taking relative instead of absolute time for timeouts,
	these tests were updated.
2008-07-18 18:47:30 +00:00
Joel Sherrill
acb4bed0e9 2008-07-18 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix_users/mutex.t: Add ETIMEDOUT.
2008-07-18 18:46:28 +00:00
Joel Sherrill
6a0898bba3 2008-07-18 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1291/cpukit
	* itron/inline/rtems/itron/semaphore.inl, itron/src/twai_sem.c,
	posix/include/mqueue.h, posix/include/rtems/posix/mqueue.h,
	posix/include/rtems/posix/semaphore.h,
	posix/include/rtems/posix/time.h, posix/src/condtimedwait.c,
	posix/src/mqueuereceive.c, posix/src/mqueuerecvsupp.c,
	posix/src/mqueuesend.c, posix/src/mqueuesendsupp.c,
	posix/src/mqueuetimedreceive.c, posix/src/mqueuetimedsend.c,
	posix/src/mutextimedlock.c, posix/src/mutextranslatereturncode.c,
	posix/src/posixtimespecabsolutetimeout.c,
	posix/src/prwlocktimedrdlock.c, posix/src/prwlocktimedwrlock.c,
	posix/src/semaphoretranslatereturncode.c,
	posix/src/semaphorewaitsupp.c, posix/src/semtimedwait.c,
	posix/src/semtrywait.c, posix/src/semwait.c,
	posix/src/sigtimedwait.c, posix/src/timersettime.c,
	posix/src/ualarm.c, rtems/src/semobtain.c,
	rtems/src/semtranslatereturncode.c,
	score/include/rtems/score/coremutex.h,
	score/include/rtems/score/coresem.h, score/src/coresemseize.c: This
	patch addresses issues on implementation of the timeout on the
	following POSIX services. Some of these services incorrectly took a
	timeout as a relative time. Others would compute a 0 delta to timeout
	if the absolute time and the current time were equal and thus
	incorrectly block the caller forever. The root of the confusion is
	that POSIX specifies that if the timeout is incorrect (e.g. in the
	past, is now, or is numerically invalid), that it does not matter if
	the call would succeed without blocking. This is in contrast to RTEMS
	programming style where all errors are checked before any critical
	sections are entered. This fix implemented a more uniform way of
	handling POSIX absolute time timeouts.
	    + pthread_cond_timedwait - could block forever
	    + mq_timedreceive - used relative not absolute time
	    + mq_timedsend - used relative not absolute time
	    + pthread_mutex_timedlock - used relative not absolute time
	    + pthread_rwlock_timedrdlock- used relative not absolute time
	    + pthread_rwlock_timedwrlock- used relative not absolute time
	    + sem_timedwait - could block forever
2008-07-18 18:45:56 +00:00
Thomas Doerfler
d3c321367c Changed special purpose register inline functions to macros.
fixed some minors in mpc83xx support
added file for mpc55xx watchdog support
2008-07-18 15:56:48 +00:00
Joel Sherrill
eb98e4c627 typos. 2008-07-18 14:03:47 +00:00
Thomas Doerfler
59be902499 mpc8249eamds support for Gigabit Ethernet works again
initialize PHY registers late enough, so that phy access is possible
2008-07-18 11:24:39 +00:00
Thomas Doerfler
e5aa0d1b66 resolved conflict 2008-07-18 07:38:55 +00:00
Joel Sherrill
d4502b445d Correct message. 2008-07-17 21:34:22 +00:00
Joel Sherrill
708a8b46eb Formatting. 2008-07-17 21:33:08 +00:00
Joel Sherrill
ce76739743 2008-07-17 Joel Sherrill <joel.sherrill@OARcorp.com>
* ChangeLog, startup/linkcmds, startup/linkcmds.m5484FireEngine.flash:
	Formatting.
2008-07-17 21:32:36 +00:00
Joel Sherrill
05480bb8be 2008-07-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* psxfile01/test.c: truncate on /dev/console now works.
2008-07-17 21:23:19 +00:00
Joel Sherrill
ffb9eeb5ce 2008-07-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* sp09/screen09.c: Do not use Simple Vectored Interrupt calls on
	architectures they are not supported on.
2008-07-17 21:22:29 +00:00
Joel Sherrill
00a2d366a6 2008-07-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/monitor/mon-monitor.c, libmisc/monitor/mon-object.c,
	libmisc/monitor/monitor.h, libmisc/shell/main_chmod.c,
	libmisc/shell/main_tty.c, libmisc/shell/main_umask.c,
	libmisc/shell/main_whoami.c: Add pthread command to monitor when
	POSIX is enabled. Remove include of rtems/monitor.h from files not
	related.
2008-07-17 15:43:56 +00:00
Thomas Doerfler
9bd5118c72 fixes for display driver 2008-07-17 14:39:34 +00:00
Thomas Doerfler
677cf05fe1 bugfixes for mpc8349eamds BSP 2008-07-17 14:39:17 +00:00
Thomas Doerfler
ecb869f738 Fixed typo in access macros for device control registers (DCR) 2008-07-17 11:29:32 +00:00
Ralf Corsepius
1380b630a8 2008-07-17 Ralf Corsépius <ralf.corsepius@rtems.org>
* Makefile.am: Remove reference to startup/setvec.c.
2008-07-17 04:09:31 +00:00
Ralf Corsepius
2a8e4508eb 2008-07-17 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac: Remove RTEMS_AMPOLISH3.
2008-07-17 03:48:58 +00:00
Ralf Corsepius
e9c0429a91 New. 2008-07-17 03:39:59 +00:00
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