summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems (follow)
Commit message (Collapse)AuthorAgeFilesLines
* score: Add scheduler control to scheduler opsSebastian Huber2014-04-047-16/+37
| | | | | Scheduler operations must be free of a global scheduler context to enable partitioned/clustered scheduling.
* rtems: Move affinity from thread to scheduler.Jennifer Averett2014-04-032-9/+9
|
* score: Delete CORE_mutex_Control::lockSebastian Huber2014-03-311-1/+1
| | | | | | | | The holder field is enough to determine if a mutex is locked or not. This leads also to better error status codes in case a rtems_semaphore_release() is done for a mutex without having the ownership.
* score: PR2152: Use allocator mutex for objectsSebastian Huber2014-03-3124-125/+91
| | | | | Use allocator mutex for objects allocate/free. This prevents that the thread dispatch latency depends on the workspace/heap fragmentation.
* score: Thread life cycle re-implementationSebastian Huber2014-03-314-41/+30
| | | | | | | | | | | | | | | | | | | The thread deletion is now supported on SMP. This change fixes the following PRs: PR1814: SMP race condition between stack free and dispatch PR2035: psxcancel reveals NULL pointer access in _Thread_queue_Extract() The POSIX cleanup handler are now called in the right context (should be called in the context of the terminating thread). http://pubs.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_09.html Add a user extension the reflects a thread termination event. This is used to reclaim the Newlib reentrancy structure (may use file operations), the POSIX cleanup handlers and the POSIX key destructors.
* score: Add parameter to _Thread_Restart()Sebastian Huber2014-03-311-1/+1
| | | | | The executing thread will be later used for a common implementation with _Thread_Close().
* score: Use thread action for thread restartSebastian Huber2014-03-311-9/+1
| | | | | The thread restart is now supported on SMP. New test smptests/smpthreadlife01.
* rtems: Use thread action for signalsSebastian Huber2014-03-316-10/+36
|
* Change all references of rtems.com to rtems.org.Chris Johns2014-03-21219-219/+219
|
* rtems: Include missing header fileSebastian Huber2014-03-181-1/+2
|
* score: Add SMP lock profiling supportSebastian Huber2014-03-142-4/+6
|
* score: Add function to destroy SMP locksSebastian Huber2014-03-111-0/+10
|
* score: Add local context to SMP lock APISebastian Huber2014-03-114-25/+36
| | | | | | | | | | | Add a local context structure to the SMP lock API for acquire and release pairs. This context can be used to store the ISR level and profiling information. It may be later used to enable more sophisticated lock algorithms, e.g. MCS locks. There is only one lock that cannot be used with a local context. This is the per-CPU lock since here we would have to transfer the local context through a context switch which is very complicated.
* POSIX keys now enabled in all configurations.Joel Sherrill2014-03-071-1/+6
| | | | | | | Formerly POSIX keys were only enabled when POSIX threads were enabled. Because they are a truly safe alternative to per-task variables in an SMP system, they are being enabled in all configurations.
* Remove trailing whitespace in previous patchesJennifer Averett2014-03-073-13/+13
|
* rtems: Add Classic API get and set affinity methods.Jennifer Averett2014-03-074-0/+177
| | | | | | | Add the following methods: + rtems_task_get_affinity + rtems_task_set_affinity
* taskmode: Formatting correctionJoel Sherrill2014-03-051-5/+3
|
* rtems: Add cache size functionsSebastian Huber2014-02-281-0/+20
| | | | | Add rtems_cache_get_data_cache_size() and rtems_cache_get_instruction_cache_size().
* rtems: Use size_t for cache line sizeSebastian Huber2014-02-281-2/+2
| | | | A cache line cannot have a negative size.
* rtems: Cache manager documentationSebastian Huber2014-02-281-66/+79
| | | | Move useful functions to the top of the file.
* score: Rename _Internal_error_Occurred()Sebastian Huber2014-02-211-2/+2
| | | | Rename _Internal_error_Occurred() into _Terminate().
* Require presence of <stdatomic.h> for SMP supportSebastian Huber2014-02-172-2/+2
|
* score: Change debug helper functionsSebastian Huber2014-02-123-11/+13
| | | | | | | | Rename rtems_internal_error_description() to rtems_internal_error_text(). Rename rtems_fatal_source_description() to rtems_fatal_source_text(). Rename rtems_status_code_description() to rtems_status_text(). Remove previous implementation of rtems_status_text().
* rtems: Add rtems_status_code_description()Sebastian Huber2014-02-063-0/+80
|
* rtems/*.c: Remove use of register keywordJoel Sherrill2014-02-0337-73/+73
|
* tasksetpriority.c: Remove obsolete commentJoel Sherrill2014-01-091-2/+1
|
* libcsupport: Refactor rtems_deviceio_errnoDaniel Ramirez2014-01-082-2/+76
| | | | | | Renames rtems_deviceio_errno to rtems_status_code_to_errno and integrates it into the Classic API Status Handler. This function can now be called by including status.h
* cpukit/rtems: Add rtems_clock_get_uptime_nanoseconds to the RTEMS API.Chris Johns2013-12-243-0/+43
| | | | | | Add Timestamp support in the score to return a timestamp in nanoseconds. Add a test. Update the RTEMS API documentation.
* rtems: classic api to/from core priority conversionsDaniel Ramirez2013-12-214-4/+23
|
* signalcatch.c: Remove junk commentJoel Sherrill2013-12-091-1/+0
|
* cpukit/rtems: Remove XXX in commentsJoel Sherrill2013-12-0928-71/+110
|
* Fix leap year calculationNickolay Semyonov-Kolchin2013-12-051-1/+2
| | | | | Reference: http://en.wikipedia.org/wiki/Leap_year Bug: https://www.rtems.org/bugzilla/show_bug.cgi?id=1422
* rtemsbuildname.c: Fix missing prototype warningsJoel Sherrill2013-09-221-1/+19
|
* intrbody.c: Fix missing prototype warningsJoel Sherrill2013-09-221-7/+19
|
* smp: Add and use _Assert_Owner_of_giant()Sebastian Huber2013-08-301-2/+2
| | | | | | | | | | | | | | Add and use _ISR_Disable_without_giant() and _ISR_Enable_without_giant() if RTEMS_SMP is defined. On single processor systems the ISR disable/enable was the big hammer which ensured system-wide mutual exclusion. On SMP configurations this no longer works since other processors do not care about disabled interrupts on this processor and continue to execute freely. On SMP in addition to ISR disable/enable an SMP lock must be used. Currently we have only the Giant lock so we can check easily that ISR disable/enable is used only in the right context.
* rtems: Add SMP support for signalsSebastian Huber2013-08-274-27/+40
| | | | | | Add and use _ASR_Get_posted_signals(). The post-switch handler is not protected by disabled thread dispatching. Use proper SMP lock for signal management.
* score: _Thread_queue_Enqueue_with_handler()Sebastian Huber2013-08-231-1/+5
| | | | | Add thread parameter to _Thread_queue_Enqueue_with_handler() to avoid access to global _Thread_Executing.
* 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
|