summaryrefslogtreecommitdiffstats
path: root/cpukit/score (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 2008-07-23 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-07-231-25/+6
| | | | | * sapi/include/confdefs.h, score/src/threadcreateidle.c: Idle thread body is now completely configured via the Configuration table.
* 2008-07-18 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-07-183-65/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Changed special purpose register inline functions to macros.Thomas Doerfler2008-07-182-0/+8
| | | | | fixed some minors in mpc83xx support added file for mpc55xx watchdog support
* 2008-07-16 Till Straumann <strauman@slac.stanford.edu>Till Straumann2008-07-161-2/+2
| | | | | | * 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 Till Straumann <strauman@slac.stanford.edu>Till Straumann2008-07-161-0/+10
| | | | | * score/cpu/powerpc/rtems/powerpc/registers.h: added ppc_interrupt_get_disable_mask() inline function.
* added haleakala BSP contributed by Michael HamelThomas Doerfler2008-07-142-0/+7
|
* added support for mcf548xThomas Doerfler2008-07-114-2/+183
|
* adapted for modified exception codeThomas Doerfler2008-07-114-40/+117
|
* 2008-07-10 Till Straumann <strauman@slac.stanford.edu>Till Straumann2008-07-103-439/+37
| | | | | | | | | | | * 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.
* added irq-extension.h declarationsThomas Doerfler2008-07-102-0/+11
|
* Support rtems_ada_self iff __RTEMS_ADA__ is given.Ralf Corsepius2008-07-023-0/+6
|
* Rename __STRICT_ORDER_MUTEX__ to __RTEMS_STRICT_ORDER_MUTEX__.Ralf Corsepius2008-06-306-12/+12
|
* hris Johns <chrisj@rtems.org>Chris Johns2008-06-161-0/+1
| | | | | | | | * cpukit/sapi/include/confdefs.h: Add missing quote to string to remove warning. * cpukit/score/cpu/m68k/rtems/score/m68k.h: Add the default priority level for large memory Coldfires.
* 2008-06-13 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-06-131-3/+11
| | | | | | * sapi/include/confdefs.h, score/include/rtems/score/priority.h: Add CONFIGURE_IDLE_TASK_INITIALIZES_APPLICATION and CONFIGURE_MAXIMUM_PRIORITY.
* 2008-06-13 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-06-132-5/+14
| | | | | * rtems/score/m68k.h: There is no point in defining the maximum priorities to 255. priority.h will default it to this.
* 2008-06-13 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-06-136-14/+42
| | | | | | | | | | | | | * posix/include/rtems/posix/pthread.h, posix/src/pthread.c, posix/src/pthreadcreate.c, rtems/include/rtems.h, rtems/src/attr.c, sapi/include/confdefs.h, sapi/include/rtems/config.h, score/inline/rtems/score/stack.inl, score/src/isr.c, score/src/mpci.c, score/src/threadcreateidle.c, score/src/threadinitialize.c, score/src/threadstackallocate.c: Add ability for application to configure minimum stack size. Add RTEMS_CONFIGURED_MINIMUM_STACK_SIZE constant so user can clearly indicate they want the configured as opposed to the recommended minimum stack size.
* 2008-06-10 Chris Johns <chrisj@rtems.org>Chris Johns2008-06-111-0/+14
| | | | | | * score/include/rtems/score/priority.h: Let the CPU define the maximum and minimum priority levels to reduce the amount of memory thread chains use.
* hris Johns <chrisj@rtems.org>Chris Johns2008-06-114-194/+244
| | | | | | | | * cpu_asm.S: Add Coldfire FPU support. * rtems/score/m68k.h: Change the Coldfire CPU defines to be based on the instruction set. Add Tiny RTEMS support to the small memory model RTEMS processors. * rtems/score/cpu.h: Handle the new Tiny RTEMS support.
* 2008-06-06 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-06-061-3/+3
| | | | | | * rtems/include/rtems/rtems/ratemon.h, rtems/src/ratemonperiod.c, score/include/rtems/score/thread.h: Complete previous patch. Add typedef for cpu usage statistics.
* 2008-06-06 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-06-064-8/+9
| | | | | | | | | | | | | * libcsupport/src/__times.c, libmisc/cpuuse/cpuusagereport.c, libmisc/cpuuse/cpuusagereset.c, libmisc/monitor/mon-task.c, rtems/include/rtems/rtems/ratemon.h, rtems/src/ratemongetstatus.c, rtems/src/ratemonperiod.c, score/include/rtems/score/thread.h, score/src/threaddispatch.c, score/src/threadinitialize.c, score/src/threadtickletimeslice.c: Add typedefs for cpu usage and period timing statistics. Also renamed related variables and structure members so they are the same whether you are using nanosecond (e.g. struct timespec) or ticks (e.g. uint32_t) granularity. This lays the groundwork for future cleanup.
* 2008-06-05 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-06-052-0/+4
| | | | | | * score/include/rtems/score/isr.h, score/src/isr.c: Use CPU_SIMPLE_VECTORED_INTERRUPTS porting parameter to avoid allocating memory for vector table.
* 2008-06-05 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-06-051-1/+1
| | | | * score/src/wkspace.c: Fix error in comment.
* 2008-06-05 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-06-0522-1/+227
| | | | | | | | * rtems/score/cpu.h: Add CPU_SIMPLE_VECTORED_INTERRUPTS porting parameter to indicate that the port uses the Simple Vectored Interrupt model or the Programmable Interrupt Controller Model. The PIC model is implemented primarily in the BSP and it is responsible for all memory allocation.
* 2008-06-04 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-06-043-2/+15
| | | | | | * score/src/objectgetinfo.c, score/src/objectidtoname.c, score/src/threadget.c: Make sure the pointer to the API object table is valid before derefencing it.
* 2008-06-04 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-06-042-1/+7
| | | | | | * rtems/score/cpu.h: Use a constant for CPU_STACK_MINIMUM_SIZE so it can be used in cpp expressions. Using sizeof() requires actually compiling the file.
* 2008-06-02 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-06-022-4/+4
| | | | | * score/include/rtems/score/interr.h, score/src/interr.c: Convention calls for leading underscore on private RTEMS variables.
* Move #include's out of extern "C" {}.Ralf Corsepius2008-05-312-5/+5
|
* 2008-05-27 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-05-271-2/+0
| | | | | | * libcsupport/src/newlibc_exit.c, score/src/threadhandler.c: Call fini() as part of exit(). This avoids atexit() being a required function.
* Added new defines OBJECTS_ID_NONEThomas Doerfler2008-05-271-0/+5
| | | | and RTEMS_ID_NONE. No object can have this ID.
* 2008-05-22 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-05-223-6/+37
| | | | | | | | | | | | | * itron/include/rtems/itron/task.h, itron/src/del_tsk.c, itron/src/exd_tsk.c, itron/src/task.c, posix/include/rtems/posix/threadsup.h, posix/src/cancel.c, posix/src/cancelrun.c, posix/src/pthread.c, posix/src/pthreadexit.c, posix/src/setcancelstate.c, posix/src/setcanceltype.c, posix/src/testcancel.c, rtems/src/taskdelete.c, score/inline/rtems/score/object.inl, score/src/objectclose.c, score/src/threadclose.c: Make all task delete/exit/cancel routines follow the same critical section pattern. Also ensure that POSIX cancelation routines are run at thread exit.
* 2008-05-16 Till Straumann <strauman@slac.stanford.edu>Joel Sherrill2008-05-162-16/+26
| | | | | | | | * score/src/threadchangepriority.c: Just in case the transient state was set when we entered, ensure that it is still set when we exit. * score/src/threadclose.c: When a thread is being deleted, it should go into the dormant state -- not the transient state.
* 2008-05-06 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-05-061-2/+2
| | | | | * sapi/src/exinit.c, score/src/threadstartmultitasking.c: Improve comments.
* Fix date.Joel Sherrill2008-05-061-1/+1
|
* 2008-05-06 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-05-061-1/+29
| | | | * score/src/objectget.c: Improve comments and readability.
* 2008-05-06 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-05-062-4/+22
| | | | | | * rtems/include/rtems/rtems/message.h, sapi/include/confdefs.h, score/src/coresemseize.c, score/src/threadhandler.c: Comment improvements from class.
* Fix typo.Joel Sherrill2008-04-281-5/+0
|
* 2008-04-28 Daron Chabot <daron.chabot@usask.ca>Joel Sherrill2008-04-282-1/+7
| | | | | | | | * posix/src/keycreate.c, posix/src/pthreadequal.c, rtems/src/semtranslatereturncode.c, score/cpu/powerpc/rtems/score/powerpc.h, score/src/threadblockingoperationcancel.c: Fix compilation errors when --enable-rtems-debug is used.
* 2008-04-25 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-04-251-1/+1
| | | | * score/include/rtems/system.h: Fix typo in comment.
* 2008-04-18 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-04-182-2/+11
| | | | * cpu.c: Add comment.
* 2008-04-17 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-04-172-1/+8
| | | | | * cpu.c: Add arm_cpu_mode so ARM BSP can overrid default value for cpsr.
* 2008-04-09 Madhusudan.C.S <madhusudancs@gmail.com>Joel Sherrill2008-04-091-2/+2
| | | | * score/include/rtems/score/tod.h: Fix typo.
* 2008-03-04 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-03-051-2/+2
| | | | * score/include/rtems/score/copyrt.h: Update year.
* 2008-02-28 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-02-283-7/+48
| | | | | | | | | | | | | | * itron/include/rtems/itron/task.h, itron/src/cre_tsk.c, posix/src/pthreadcreate.c, rtems/src/taskcreate.c, rtems/src/taskdelete.c, rtems/src/timerserver.c, score/src/threadclose.c, score/src/threadcreateidle.c, score/src/threadinitialize.c: Switch task create and delete operations to using API Allocator Mutex. This moves almost all uses of the RTEMS Workspace from dispatching disabled to mutex protected which should improve deterministic behavior. The implementation was carefully done to allow task create and delete extensions to invoke more services. In particular, a task delete extension should be able to do mutex and file operations.
* 2008-02-26 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-02-261-3/+0
| | | | | * rtems/src/regionmp.c, score/src/objectnametoidstring.c: Fix some warnings.
* Update copyright date.Joel Sherrill2008-02-261-1/+1
|
* 2008-02-20 Alexandru Bugnar <a-bugnar@criticalsoftware.com>Joel Sherrill2008-02-202-1/+7
| | | | | | PR 1278/cpukit * cpu.c: Fix incorrect bit manipulation on returning old address of raw trap handler.
* 2008-02-20 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2008-02-201-0/+6
| | | | | | * rtems/old-exceptions/cpu.h: Remove (Abandoned). * rtems/score/cpu.h: Remove ref to rtems/old-exceptions/cpu.h. * Makefile.am: Remove ref to rtems/old-exceptions/cpu.h.
* Regenerate.Ralf Corsepius2008-02-201-9/+0
|
* Remove ref to rtems/old-exceptions/cpu.h.Ralf Corsepius2008-02-202-7/+0
|
* Remove (Abandoned).Ralf Corsepius2008-02-201-450/+0
|