summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include (follow)
Commit message (Collapse)AuthorAgeFilesLines
* smp: Add and use _CPU_SMP_Send_interrupt()Sebastian Huber2013-07-171-12/+0
| | | | Delete bsp_smp_interrupt_cpu().
* smp: Add and use _CPU_SMP_Get_current_processor()Sebastian Huber2013-07-174-42/+22
| | | | | | | | | | Add and use _SMP_Get_current_processor() and rtems_smp_get_current_processor(). Delete bsp_smp_interrupt_cpu(). Change type of current processor index from int to uint32_t to match _SMP_Processor_count type.
* smp: Delete RTEMS_BSP_SMP_CONTEXT_SWITCH_NECESSARYSebastian Huber2013-07-171-7/+0
| | | | | The thread dispatch is a side-effect of interrupt processing, thus there is no need to send an explicit message.
* score: Changes due to Newlib __DYNAMIC_REENT__Sebastian Huber2013-07-171-0/+3
| | | | | | | | | | | | | Delete _Thread_libc_reent and add __getreent() instead according to __DYNAMIC_REENT__ define. For SMP configurations __DYNAMIC_REENT__ must be defined. A Newlib including the following patch is required: 2013-07-09 Sebastian Huber <sebastian.huber@embedded-brains.de> * libc/include/sys/config.h (__DYNAMIC_REENT__): Define for RTEMS.
* score: Add _Thread_Get_executing()Sebastian Huber2013-07-171-0/+29
|
* clean up old atomic related filesWeiY2013-07-172-336/+0
|
* A generic atomic implementation for smp architecturesWeiY2013-07-171-0/+332
|
* New atomic API definition based on C11 atomicWeiY2013-07-171-213/+232
|
* heap: Add _Heap_Greedy_allocate_all_except_largestSebastian Huber2013-06-251-1/+15
| | | | | Add rtems_workspace_greedy_allocate_all_except_largest() and rtems_heap_greedy_allocate_all_except_largest().
* score: _Heap_Protection_free_all_delayed_blocks()Sebastian Huber2013-06-211-0/+11
| | | | | Add and use _Heap_Protection_free_all_delayed_blocks() to prevent test suite failures if RTEMS_DEBUG is defined.
* bsps: Move bsp_generic_fatal_code to new fileSebastian Huber2013-06-211-3/+3
| | | | Add bsp_generic_fatal().
* documentation: Fix Doxygen commentsSebastian Huber2013-06-146-9/+9
|
* scheduler: New simple SMP scheduler implementationSebastian Huber2013-06-142-71/+90
| | | | | | | | | | | | | | | | | The new Simple SMP Scheduler allocates a processor for the processor count highest priority ready threads. The thread priority and position in the ready chain are the only information to determine the scheduling decision. Threads with an allocated processor are in the scheduled chain. After initialization the scheduled chain has exactly processor count nodes. Each processor has exactly one allocated thread after initialization. All enqueue and extract operations may exchange threads with the scheduled chain. One thread will be added and another will be removed. The scheduled and ready chain is ordered according to the thread priority order. The chain insert operations are O(count of ready threads), thus this scheduler is unsuitable for most real-time applications. The thread preempt mode will be ignored.
* scheduler: Add and use _Scheduler_default_Tick()Sebastian Huber2013-06-146-23/+13
| | | | | Delete _Scheduler_priority_Tick(). Use _SMP_Get_processor_count() for default tick operation. Delete _Scheduler_simple_smp_Tick().
* scheduler: Specify thread of yield operationSebastian Huber2013-06-144-11/+21
| | | | | | The yielding thread of the yield operation is now specified by a parameter. The tick operation may be performed for each executing thread in a SMP configuration.
* scheduler: Add start idle thread operationSebastian Huber2013-06-146-5/+30
| | | | Add and use _Scheduler_Start_idle().
* score: Rename rtems_smp_get_number_of_processors()Sebastian Huber2013-06-141-28/+32
| | | | | | | | | Rename in rtems_smp_get_processor_count(). Always provide <rtems/score/smp.h> and <rtems/rtems/smp.h>. Add _SMP_Get_processor_count(). This function will be a compile time constant defined to be one on uni-processor configurations. This allows iterations over all processors without overhead on uni-processor configurations.
* score: Add and use _Thread_Dispatch_is_enabled()Sebastian Huber2013-06-142-33/+14
| | | | | Delete _Thread_Dispatch_in_critical_section() and _Thread_Is_dispatching_enabled().
* smp: Add and use _Per_CPU_Lock_acquire()Sebastian Huber2013-06-121-0/+6
| | | | Add and use _Per_CPU_Lock_release().
* score: Avoid cyclic include dependencySebastian Huber2013-06-121-1/+2
|
* score: Add missing includeSebastian Huber2013-06-121-0/+1
|
* score: Always provide <rtems/score/smplock.h>Sebastian Huber2013-06-122-3/+7
|
* score: Move thread dispatch content to new fileSebastian Huber2013-06-072-105/+264
| | | | | | | 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.
* score: Simplify _CORE_mutex_Seize_interrupt_try*Sebastian Huber2013-06-071-8/+8
|
* smp: New SMP lock APISebastian Huber2013-05-313-102/+83
| | | | | | | | | | | | | | 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.
* score: Mark as no returnSebastian Huber2013-05-311-5/+7
| | | | Mark rtems_smp_secondary_cpu_initialize() as no return.
* score: Remove idle field of Per_CPU_ControlSebastian Huber2013-05-311-5/+0
| | | | | | 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().
* smp: Simplify SMP initialization sequenceSebastian Huber2013-05-293-30/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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().
* smp: Delete bsp_smp_secondary_cpu_initialize()Sebastian Huber2013-05-291-18/+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().
* smp: Delete rtems_smp_send_message()Sebastian Huber2013-05-291-15/+0
|
* smp: Delete rtems_smp_initialize_per_cpu()Sebastian Huber2013-05-291-10/+0
|
* smp: Simplify main CPU initializationSebastian Huber2013-05-291-10/+13
| | | | | | 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.
* smp: Make CPU_ALLOCATE_INTERRUPT_STACK optionalSebastian Huber2013-05-291-4/+0
|
* smp: Include missing headerSebastian Huber2013-05-291-0/+2
|
* smp: Add maximum_processors field to configSebastian Huber2013-05-161-8/+0
| | | | | | | Delete rtems_configuration_get_smp_maximum_processors(). Delete rtems_configuration_smp_maximum_processors variable. Add maximum_processors field to rtems_configuration_table if RTEMS_SMP is defined. Add rtems_configuration_get_maximum_processors().
* Implement a generic atomic ops for all UP mode architectures with ↵WeiY2013-05-011-0/+274
| | | | disable/enable-IRQ function simulated.
* Include <stdint.h>Ralf Corsépius2013-02-141-0/+2
|
* score: Add and use rtems_assert_contextSebastian Huber2013-02-121-1/+3
|
* score: atomic support for RTEMS. Generic atomic operations API definition.WeiY2013-02-072-0/+337
|
* cpukit: Fix many Doxygen warningsJoel Sherrill2013-01-109-26/+33
|
* cpukit: Use Consistent Beginning of Doxygen Group NotationJoel Sherrill2013-01-106-17/+9
| | | | | This is the result of a sed script which converts all uses of @{ into a consistent form.
* cpukit: Add EOL on files missing EOL at EOFJoel Sherrill2013-01-1038-38/+38
|
* cpukit: Doxygen group fixes and many warnings addressedJoel Sherrill2013-01-1012-45/+31
| | | | | | | The output of the modules.html is much improved. Most filesystem and POSIX API related groups are properly nested. Some formatting issues were addressed as were multiple inconsistencies.
* score: Doxygen Clean Up Task #3Mathew Kallada2013-01-0415-157/+218
|
* score: Add const qualifierSebastian Huber2013-01-021-4/+4
|
* score: Do not inline _RBTree_Find_unprotected()Sebastian Huber2013-01-021-1/+15
| | | | | This function is to big to inline. It leads also to test case explosion.
* score: Doxygen Clean Up Task #1Mathew Kallada2012-12-2920-169/+244
|
* score: Doxygen Clean Up Task #2Mathew Kallada2012-12-2819-258/+324
|
* Header File Doxygen Enhancement Task #1Alex Ivanov2012-12-281-4/+6
|
* Header File Doxygen Enhancement Task #7Mathew Kallada2012-12-281-8/+10
|