summaryrefslogtreecommitdiffstats
path: root/cpukit (follow)
Commit message (Collapse)AuthorAgeFilesLines
* smp: Add PowerPC supportSebastian Huber2013-05-315-2/+117
|
* smp: New SMP lock APISebastian Huber2013-05-3118-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.
* 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-315-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().
* smp: Move secondary CPU initialization requestSebastian Huber2013-05-292-6/+4
| | | | | Do not assume that the scheduler selects the main processor for the initialization thread.
* smp: Use _CPU_Fatal_halt()Sebastian Huber2013-05-291-2/+2
|
* smp: Simplify SMP initialization sequenceSebastian Huber2013-05-298-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().
* smp: Delete bsp_smp_secondary_cpu_initialize()Sebastian Huber2013-05-292-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().
* 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-293-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.
* smp: Make CPU_ALLOCATE_INTERRUPT_STACK optionalSebastian Huber2013-05-292-13/+13
|
* smp: Rely on BSS initializationSebastian Huber2013-05-291-5/+0
| | | | | | The _Per_CPU_Information is part of the BSS segment and must be zero initialized. Some processors may already poll some per-CPU fields and wait for a state change at this point.
* smp: Include missing headerSebastian Huber2013-05-291-0/+2
|
* smp: Replace task delete with suspendSebastian Huber2013-05-291-0/+4
| | | | The rtems_task_delete() does not work on SMP at the moment. See PR1814.
* arm: Add CPU specific idle thread for ARMv7Sebastian Huber2013-05-274-4/+10
|
* arm: Fix CPSR and SPSR accessSebastian Huber2013-05-272-8/+8
| | | | | | | | | | | | | | | The GNU assembler translates for example a msr spsr, rN into msr SPSR_fc, rN This would update only a subset of the register and leads to an incomplete exceptions restore sequence resulting in system corruption. Correct is this: msr SPSR_fsxc, rN
* dosfs: Add RTEMS_DOSFS_SEMAPHORES_PER_INSTANCERalf Kirchner2013-05-241-0/+7
|
* dosfs: Fix typoRalf Kirchner2013-05-241-1/+1
|
* score: use reference with strict mutexGedare Bloom2013-05-181-1/+1
|
* smp: Add maximum_processors field to configSebastian Huber2013-05-167-35/+25
| | | | | | | 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().
* shell: Add df commandAndrei Mozzhuhin2013-05-163-1/+165
|
* dosfs: Add statvfs() supportAndrei Mozzhuhin2013-05-164-2/+80
|
* shell: Fix NULL pointer accessAndreas Heinig2013-05-161-1/+1
|
* libcsupport: Avoid division by zeroSebastian Huber2013-05-101-1/+1
|
* arm: Support VFP-D32 and NeonSebastian Huber2013-05-109-38/+393
|
* arm: Simplify architecture selectionSebastian Huber2013-05-101-63/+5
|
* score: Add CPU context validationSebastian Huber2013-05-1027-0/+889
|
* arm: Add FUNCTION_THUMB_ENTRY(), etc.Sebastian Huber2013-05-101-0/+17
| | | | Add FUNCTION_THUMB_ENTRY(), FUNCTION_ENTRY() and FUNCTION_END().
* Revert bootstrap whitespace changes.Chris Johns2013-05-1014-0/+14
|
* sparc: Fix problem with assembler filesSebastian Huber2013-05-071-1/+1
|
* sparc.h: Included stdint.hMohammed Khoory2013-05-061-0/+2
| | | | | | This header uses uint32_t but does not include stdint.h This may cause problems when compiling applications that include BSP headers that include this file (leon.h for example)
* arm: Switch to ARM only for Thumb-1Sebastian Huber2013-05-031-1/+1
| | | | The Thumb-2 instruction set as encodings for the relevant instructions.
* arm: Fix DEFINE_FUNCTION_ARM() for ARMv7-ARSebastian Huber2013-05-031-1/+1
|
* score/cpu/.../i386.h: PR2020: Remove soft float referencesJoel Sherrill2013-05-011-46/+20
| | | | | i386 soft-float is no longer supported by gcc. Dropping related code in the i386 score/cpu code.
* Clear the atomic conditional compilation.WeiY2013-05-015-15/+2
|
* Using the generic atomic ops to implement UP mode atomic for all ↵WeiY2013-05-0145-0/+661
| | | | architectures. SMP atomic port will be later.
* Implement a generic atomic ops for all UP mode architectures with ↵WeiY2013-05-013-0/+279
| | | | disable/enable-IRQ function simulated.
* libcsupport: Delete libc_wrapup()Sebastian Huber2013-04-265-25/+48
| | | | | | | Add and use rtems_libio_exit_helper. Add rtems_libio_exit(). The fclose(stdin) etc. makes no sense during exit. This would use the _REENT structure of the thread calling _exit().
* libcsupport: Rename open_dev_console()Sebastian Huber2013-04-264-6/+5
| | | | | Rename open_dev_console() to rtems_libio_post_driver(). Rename rtems_libio_supp_helper to rtems_libio_post_driver_helper.
* libcsupport: Make LibIO helper constSebastian Huber2013-04-265-25/+55
| | | | | Add and use rtems_libio_helper function type. Add and use rtems_libio_helper_null() instead of NULL pointer.
* libcsupport: Remove superfluous assignmentsSebastian Huber2013-04-261-51/+15
| | | | Remove superfluous declaractions, defines, comments and includes.
* libcsupport: Make newlib_free_buffers() staticSebastian Huber2013-04-261-6/+1
|
* libcsupport: Delete unused newlib_begin_hook()Sebastian Huber2013-04-261-11/+0
|
* libcsupport: Delete REENT_MALLOCED defineSebastian Huber2013-04-261-27/+5
|
* libcsupport: Use copyright notice of original fileSebastian Huber2013-04-261-0/+2
|
* libcsupport: POSIX conformance for _exit()Sebastian Huber2013-04-251-86/+3
| | | | | | | | | | According to POSIX the _exit() function shall not call functions registered with atexit() nor any registered signal handlers. See also tests libtests/exit01 and libtests/exit02. Make libc_wrapup() static. Remove out of date comments. Remove superfluous declarations, defines and includes.
* mips: Fix warningsSebastian Huber2013-04-231-0/+1
|
* sapi: Fix warningsSebastian Huber2013-04-231-3/+2
|
* sapi: Fix unified workspace optionSebastian Huber2013-04-111-4/+0
|