summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems (follow)
Commit message (Collapse)AuthorAgeFilesLines
* rtems: Include missing header fileSebastian Huber2013-08-141-0/+1
|
* score: Per-CPU thread dispatch disable levelSebastian Huber2013-08-092-1/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use a per-CPU thread dispatch disable level. So instead of one global thread dispatch disable level we have now one instance per processor. This is a major performance improvement for SMP. On non-SMP configurations this may simplifiy the interrupt entry/exit code. The giant lock is still present, but it is now decoupled from the thread dispatching in _Thread_Dispatch(), _Thread_Handler(), _Thread_Restart_self() and the interrupt entry/exit. Access to the giant lock is now available via _Giant_Acquire() and _Giant_Release(). The giant lock is still implicitly acquired via _Thread_Dispatch_decrement_disable_level(). The giant lock is only acquired for high-level operations in interrupt handlers (e.g. release of a semaphore, sending of an event). As a side-effect this change fixes the lost thread dispatch necessary indication bug in _Thread_Dispatch(). A per-CPU thread dispatch disable level greatly simplifies the SMP support for the interrupt entry/exit code since no spin locks have to be acquired in this area. It is only necessary to get the current processor index and use this to calculate the address of the own per-CPU control. This reduces the interrupt latency considerably. All elements for the interrupt entry/exit code are now part of the Per_CPU_Control structure: thread dispatch disable level, ISR nest level and thread dispatch necessary. Nothing else is required (except CPU port specific stuff like on SPARC).
* PR766: Delete __RTEMS_INSIDE__Sebastian Huber2013-08-081-2/+0
|
* PR766: Delete __RTEMS_APPLICATION__Sebastian Huber2013-08-081-14/+0
| | | | This define is no longer used.
* smp: Support ASR path in rtems_task_mode()Sebastian Huber2013-08-051-0/+14
|
* score: Use an ISR lock for TODSebastian Huber2013-08-011-7/+7
| | | | | | | | | | | | | Two issues are addressed. 1. On single processor configurations the set/get of the now/uptime timestamps is now consistently protected by ISR disable/enable sequences. Previously nested interrupts could observe partially written values since 64-bit writes are not atomic on 32-bit architectures in general. This could lead to non-monotonic uptime timestamps. 2. The TOD now/uptime maintanence is now independent of the giant lock. This is the first step to remove the giant lock in _Thread_Dispatch().
* score: Move nanoseconds since last tick supportSebastian Huber2013-08-012-20/+5
| | | | | | Move the nanoseconds since last tick support from the Watchdog to the TOD handler. Now the TOD managment is encapsulated in the TOD_Control structure.
* score: Add and use _TOD_Is_set()Sebastian Huber2013-08-016-6/+6
|
* score: Rename tod.h to todimpl.hSebastian Huber2013-08-0116-16/+16
|
* score: ISR lock API changesSebastian Huber2013-08-011-20/+6
|
* score: Add and use ISR locksSebastian Huber2013-07-311-48/+31
| | | | | | | | | | | | ISR locks are low-level locks to protect critical sections accessed by threads and interrupt service routines. On single processor configurations the ISR locks degrade to simple ISR disable/enable sequences. No additional storage or objects are required. This synchronization primitive is supported on SMP configurations. Here SMP locks are used.
* score: Move _Thread_Dispatch_if_necessary()Sebastian Huber2013-07-301-1/+20
| | | | Rename to _RTEMS_Tasks_Dispatch_if_necessary().
* score: Add and use _Thread_Signal_notification()Sebastian Huber2013-07-301-3/+1
|
* score: Merge tod implementation into one fileSebastian Huber2013-07-2633-60/+14
| | | | | Delete TOD_MICROSECONDS_PER_SECOND, TOD_MICROSECONDS_TO_TICKS() and TOD_MILLISECONDS_TO_TICKS().
* score: Create object implementation headerSebastian Huber2013-07-2687-126/+80
| | | | | | Move implementation specific parts of object.h and object.inl into new header file objectimpl.h. The object.h contains now only the application visible API.
* Include missing <rtems/score/threaddispatch.h>Sebastian Huber2013-07-266-16/+11
|
* score: Create mpci implementation headerSebastian Huber2013-07-2634-145/+25
| | | | | Move implementation specific parts of mpci.h into new header file mpciimpl.h. The mpci.h contains now only the application visible API.
* rtems: Create signal implementation headerSebastian Huber2013-07-268-51/+78
| | | | | | Move implementation specific parts of signal.h into new header file signalimpl.h. The signal.h contains now only the application visible API.
* rtems: Fix partition includesSebastian Huber2013-07-262-12/+5
|
* rtems: Use proper header guardSebastian Huber2013-07-261-2/+2
|
* score: Create threadq implementation headerSebastian Huber2013-07-2621-39/+10
| | | | | | | | Move implementation specific parts of tqdata.h, threadq.h and threadq.inl into new header file threadqimpl.h. The threadq.h contains now only the application visible API. Delete tqdata.h.
* score: Create states implementation headerSebastian Huber2013-07-2644-53/+12
| | | | | | Move implementation specific parts of states.h and states.inl into new header file statesimpl.h. The states.h contains now only the application visible API.
* score: Create thread implementation headerSebastian Huber2013-07-2634-190/+53
| | | | | | | | Move implementation specific parts of thread.h and thread.inl into new header file threadimpl.h. The thread.h contains now only the application visible API. Remove superfluous header file includes from various files.
* score: Create scheduler implementation headerSebastian Huber2013-07-265-30/+6
| | | | | | Move implementation specific parts of scheduler.h and scheduler.inl into new header file schedulerimpl.h. The scheduler.h contains now only the application visible API.
* score: Merge sysstate API into one fileSebastian Huber2013-07-2438-38/+0
|
* score: Create heap implementation headerSebastian Huber2013-07-232-0/+2
| | | | | | Move implementation specific parts of heap.h and heap.inl into new header file heapimpl.h. The heap.h contains now only the application visible API.
* rtems: Include missing headerSebastian Huber2013-07-231-1/+2
|
* rtems: Create tasks implementation headerSebastian Huber2013-07-2330-198/+207
| | | | | | Move implementation specific parts of tasks.h and tasks.inl into new header file tasksimpl.h. The tasks.h contains now only the application visible API.
* rtems: Create region implementation headerSebastian Huber2013-07-2319-115/+114
| | | | | | Move implementation specific parts of region.h and region.inl into new header file regionimpl.h. The region.h contains now only the application visible API.
* rtems: Include <rtems/debug.h> in <rtems.h>Sebastian Huber2013-07-231-0/+1
| | | | This header file is included indirectly via <rtems/rtems/region.h>.
* rtems: Create part implementation headerSebastian Huber2013-07-2313-66/+70
| | | | | | Move implementation specific parts of part.h and part.inl into new header file partimpl.h. The part.h contains now only the application visible API.
* rtems: Create timer implementation headerSebastian Huber2013-07-2318-264/+262
| | | | | | Move implementation specific parts of timer.h and timer.inl into new header file timerimpl.h. The timer.h contains now only the application visible API.
* rtems: Create ratemon implementation headerSebastian Huber2013-07-2318-309/+308
| | | | | | Move implementation specific parts of ratemon.h and ratemon.inl into new header file ratemonimpl.h. The ratemon.h contains now only the application visible API.
* rtems: Create dpmem implementation headerSebastian Huber2013-07-2311-58/+53
| | | | | | Move implementation specific parts of dpmem.h and dpmem.inl into new header file dpmemimpl.h. The dpmem.h contains now only the application visible API.
* rtems: Create event implementation headerSebastian Huber2013-07-2318-393/+294
| | | | | | Move implementation specific parts of event.h, event.inl, eventset.h and eventset.inl into new header file eventimpl.h. The event.h contains now only the application visible API.
* rtems: Merge support API into one fileSebastian Huber2013-07-234-73/+30
|
* rtems: Create asr implementation headerSebastian Huber2013-07-238-25/+29
| | | | | | Move implementation specific parts of asr.h and asr.inl into new header file asrimpl.h. The asr.h contains now only the application visible API.
* rtems: Create modes implementation headerSebastian Huber2013-07-236-28/+35
| | | | | | Move implementation specific parts of modes.h and modes.inl into new header file modesimpl.h. The modes.h contains now only the application visible API.
* rtems: Create attr implementation headerSebastian Huber2013-07-2326-62/+71
| | | | | | Move implementation specific parts of attr.h and attr.inl into new header file attrimpl.h. The attr.h contains now only the application visible API.
* rtems: Create options implementation headerSebastian Huber2013-07-2312-27/+35
| | | | | | Move implementation specific parts of options.h and options.inl into new header file optionsimpl.h. The options.h contains now only the application visible API.
* rtems: Create status implementation headerSebastian Huber2013-07-2316-89/+94
| | | | | | Move implementation specific parts of status.h and status.inl into new header file statusimpl.h. The status.h contains now only the application visible API.
* rtems: Basic SMP support for timer serverSebastian Huber2013-07-221-0/+29
|
* score: Create watchdog implementation headerSebastian Huber2013-07-2221-12/+21
| | | | | | Move implementation specific parts of watchdog.h and watchdog.inl into new header file watchdogimpl.h. The watchdog.h contains now only the application visible API.
* score: Create chain implementation headerSebastian Huber2013-07-221-0/+2
| | | | | | Move implementation specific parts of chain.h and chain.inl into new header file chainimpl.h. The chain.h contains now only the application visible API.
* score: Avoid direct usage of _Thread_ExecutingSebastian Huber2013-07-221-1/+4
| | | | | | Pass the executing thread as a function parameter. Obtain the executing thread inside a thread dispatch critical section to avoid problems on SMP.
* score: Create barrier implementation headerSebastian Huber2013-07-221-0/+1
| | | | | | Move implementation specific parts of corebarrier.h and corebarrier.inl into new header file corebarrierimpl.h. The corebarrier.h contains now only the application visible API.
* rtems: Create barrier implementation headerSebastian Huber2013-07-2212-76/+79
| | | | | | Move implementation specific parts of barrier.h and barrier.inl into new header file barrierimpl.h. The barrier.h contains now only the application visible API.
* score: Avoid direct usage of _Thread_ExecutingSebastian Huber2013-07-221-1/+4
| | | | | | Pass the executing thread as a function parameter. Obtain the executing thread inside a thread dispatch critical section to avoid problems on SMP.
* score: Create message queue implementation headerSebastian Huber2013-07-2212-12/+12
| | | | | | Move implementation specific parts of coremsg.h and coremsg.inl into new header file coremsgimpl.h. The coremsg.h contains now only the application visible API.
* rtems: Create message queue implementation headerSebastian Huber2013-07-2220-225/+229
| | | | | | Move implementation specific parts of message.h and message.inl into new header file messageimpl.h. The message.h contains now only the application visible API.