summaryrefslogtreecommitdiffstats
path: root/cpukit (unfollow)
Commit message (Collapse)AuthorFilesLines
2013-06-14score: Add and use _Thread_Dispatch_if_necessary()Sebastian Huber2-30/+27
Delete _Thread_Evaluate_is_dispatch_needed(). Use _Thread_Dispatch_is_enabled() in rtems_task_mode() instead of the system state to determine if a thread dispatch is allowed. Signales are now delivered in rtems_task_mode() even if preemption is disabled. This is in line with rtems_signal_send().
2013-06-14score: Add and use _Thread_Dispatch_is_enabled()Sebastian Huber11-49/+22
Delete _Thread_Dispatch_in_critical_section() and _Thread_Is_dispatching_enabled().
2013-06-14score: Add _Chain_Insert_ordered_unprotected()Sebastian Huber1-0/+41
2013-06-14rtems: Simplify rtems_task_mode()Sebastian Huber1-6/+4
2013-06-12smp: Fix _Thread_Dispatch_decrement_disable_levelSebastian Huber1-1/+7
We must obtain the processor ID after interrupts are disabled since a non-optimizing compiler may store the value on the stack and read it back.
2013-06-12smp: Protect decrement operationSebastian Huber1-4/+4
2013-06-12smp: Add and use _Per_CPU_Lock_acquire()Sebastian Huber2-6/+12
Add and use _Per_CPU_Lock_release().
2013-06-12score: Avoid cyclic include dependencySebastian Huber1-1/+2
2013-06-12score: Add missing includeSebastian Huber1-0/+1
2013-06-12termios: SMP supportSebastian Huber2-20/+30
2013-06-12termios: Notify driver about inactive transmitSebastian Huber1-0/+3
Returning this state in the return value leads to race conditions on SMP. The inactive state notification must be inside the critical section.
2013-06-12termios: Expand critical sectionSebastian Huber1-8/+4
Use interrupt disable/enable to protect the complete refill state change. This avoids race conditions for the task driven configuration and a later SMP support.
2013-06-12termios: Move wake up writer task actionSebastian Huber1-2/+8
2013-06-12termios: Avoid second return pathSebastian Huber1-10/+9
2013-06-12rtems: Add interrupt locksSebastian Huber1-0/+135
Interrupt locks are low-level lock to protect critical sections accessed by threads and interrupt service routines.
2013-06-12score: Always provide <rtems/score/smplock.h>Sebastian Huber4-8/+12
2013-06-12configure: DocumentationSebastian Huber2-2/+6
2013-06-07smp: Set state PER_CPU_STATE_UP on main processorSebastian Huber1-4/+6
2013-06-07score: Add and use _Objects_Put()Sebastian Huber114-209/+253
Add and use _Objects_Put_without_thread_dispatch(). These two functions pair with the _Objects_Get() function. This helps to introduce object specific SMP locks to avoid lock contention.
2013-06-07score: Add _Objects_Put_for_get_isr_disable()Sebastian Huber4-0/+23
Provide SMP support. The ISR disable/enable is not enough to ensure mutual exclusion for SMP configurations.
2013-06-07score: Align _Objects_Get_isr_disable()Sebastian Huber1-2/+1
Align ISR disable/enable sequence in _Objects_Get_isr_disable() with thread dispatch disable/enable sequence in _Objects_Get().
2013-06-07score: Move thread dispatch content to new fileSebastian Huber25-247/+291
Move thread dispatch declarations and inline functions to new header <rtems/score/threaddispatch.h> to make it independent of the Thread_Control structure. This avoids a cyclic dependency in case thread dispatch functions are used for the object implementation.
2013-06-07score: Simplify _CORE_mutex_Seize_interrupt_try*Sebastian Huber3-17/+17
2013-06-07score: Simplify _CORE_semaphore_Seize_isr_disableSebastian Huber2-6/+6
2013-06-07score: Simplify _Thread_Create_idle_helper()Sebastian Huber1-9/+0
The _Thread_Initialize() function has nothing to do with thread dispatching it simply initializes the thread control.
2013-06-07rtems: Move unnest dispatch after ISR enableSebastian Huber1-1/+1
This prevents a lock order reversal.
2013-06-07rtems: Fix system event send for remote threadsSebastian Huber1-0/+1
2013-06-07dosfs: DocumentationSebastian Huber1-0/+8
2013-06-07termios: Fix warningSebastian Huber1-1/+1
2013-06-05nfsclient: Add rpcSetXIDs()Sebastian Huber2-0/+30
2013-06-05nfsclient: Fix warningsSebastian Huber2-8/+3
2013-06-05nfsclient: Delete superfluous mask operationSebastian Huber1-1/+1
2013-06-05nfsclient: Delete superfluous assignmentSebastian Huber1-1/+0
2013-06-04libblock: Use UTF-8 converter in media managerSebastian Huber1-3/+10
2013-06-03dosfs: DocumentationRalf Kirchner1-6/+97
2013-06-03dosfs: UTF-8 Support: Multibyte conversionsRalf Kirchner4-10/+340
Add optional conversion methods for multibyte strings. With these conversions which make use of iconv and utf8proc it becomes possible to use strings from any language (Czech, Chinese, Arabian, Hebrew, Corean, ...) for file names and directory names. NOTE: Iconv support must be activated during the build of the tool chain for these conversion methods (options --enable-newlib-iconv --enable-newlib-iconv-encodings=[ENCODINGS_YOU_WANT]). Alternatively you can provide your own conversion methods.
2013-06-03libmisc: Add utf8proc-v1.1.5Ralf Kirchner9-0/+14552
utf8proc is a small library for processing UTF-8 encoded Unicode strings. Some features are Unicode normalization, stripping of default ignorable characters, case folding and detection of grapheme cluster boundaries. For the time beeing utf8proc is intended to be used for normalizing and folding UTF-8 strings for comparison purposes when adding UTF-8 support to the FAT file system.
2013-06-03dosfs: UTF-8 Support: UI, backwards compatibilityRalf Kirchner11-560/+1781
User interface and backwards compatibility for UTF-8 support in the FAT file system. Purpose of UTF-8 support is to permit file names and directory names with characters from all kinds of languages (Czech, Chinese, Arabian, Hebrew, Korean, ...). This commit does not yet support multibyte characters. It only contains the user interface and the backwards compatibility.
2013-05-31smp: Add ARM supportSebastian Huber7-3/+181
2013-05-31smp: Add PowerPC supportSebastian Huber5-2/+117
2013-05-31smp: New SMP lock APISebastian Huber18-463/+470
Move the SMP lock implementation to the CPU port. An optimal SMP lock implementation is highly architecture dependent. For example the memory models may be fundamentally different. The new SMP lock API has a flaw. It does not provide the ability to use a local context for acquire and release pairs. Such a context is necessary to implement for example the Mellor-Crummey and Scott (MCS) locks. The SMP lock is currently used in _Thread_Disable_dispatch() and _Thread_Enable_dispatch() and makes them to a giant lock acquire and release. Since these functions do not pass state information via a local context there is currently no use case for such a feature.
2013-05-31score: Mark as no returnSebastian Huber1-5/+7
Mark rtems_smp_secondary_cpu_initialize() as no return.
2013-05-31score: Remove idle field of Per_CPU_ControlSebastian Huber5-14/+27
This field is unused except for special case simulator clock drivers. In these places use an alternative. Add and use _Thread_Set_global_exit_status() and _Thread_Get_global_exit_status().
2013-05-29smp: Move secondary CPU initialization requestSebastian Huber2-6/+4
Do not assume that the scheduler selects the main processor for the initialization thread.
2013-05-29smp: Use _CPU_Fatal_halt()Sebastian Huber1-2/+2
2013-05-29smp: Simplify SMP initialization sequenceSebastian Huber8-189/+252
Delete bsp_smp_wait_for(). Other parts of the system work without timeout, e.g. the spinlocks. Using a timeout here does not make the system more robust. Delete bsp_smp_cpu_state and replace it with Per_CPU_State. The Per_CPU_State follows the Score naming conventions. Add _Per_CPU_Change_state() and _Per_CPU_Wait_for_state() functions to change and observe states. Use Per_CPU_State in Per_CPU_Control instead of the anonymous integer. Add _CPU_Processor_event_broadcast() and _CPU_Processor_event_receive() functions provided by the CPU port. Use these functions in _Per_CPU_Change_state() and _Per_CPU_Wait_for_state(). Add prototype for _SMP_Send_message(). Delete RTEMS_BSP_SMP_FIRST_TASK message. The first context switch is now performed in rtems_smp_secondary_cpu_initialize(). Issuing the first context switch in the context of the inter-processor interrupt is not possible on systems with a modern interrupt controller. Such an interrupt controler usually requires a handshake protocol with interrupt acknowledge and end of interrupt signals. A direct context switch in an interrupt handler circumvents the interrupt processing epilogue and may leave the system in an inconsistent state. Release lock in rtems_smp_process_interrupt() even if no message was delivered. This prevents deadlock of the system. Simplify and format _SMP_Send_message(), _SMP_Request_other_cores_to_perform_first_context_switch(), _SMP_Request_other_cores_to_dispatch() and _SMP_Request_other_cores_to_shutdown().
2013-05-29smp: Delete bsp_smp_secondary_cpu_initialize()Sebastian Huber2-21/+19
Do not call bsp_smp_secondary_cpu_initialize() in rtems_smp_secondary_cpu_initialize(). This allows more flexibilty in the BSP low-level code. Specify context requirements for a call to rtems_smp_secondary_cpu_initialize().
2013-05-29smp: Delete rtems_smp_send_message()Sebastian Huber1-15/+0
2013-05-29smp: Delete rtems_smp_initialize_per_cpu()Sebastian Huber1-10/+0
2013-05-29smp: Simplify main CPU initializationSebastian Huber3-21/+24
Call _SMP_Handler_initialize() later and move bsp_smp_initialize() into _SMP_Handler_initialize(). Change bsp_smp_initialize() prototype to match integer types of calling context.