summaryrefslogtreecommitdiff
path: root/cpukit/score (follow)
AgeCommit message (Collapse)Author
2017-12-14epiphany: Remove superfluous includesSebastian Huber
Update #3254.
2017-12-13arm: Move <libcpu/arm-cp15.h> to cpukitSebastian Huber
Update #3254.
2017-12-06libio: Use API mutexSebastian Huber
2017-12-04score: Use self-contained API mutexSebastian Huber
Use a self-contained recursive mutex for API_Mutex_Control. The API mutexes are protected against asynchronous thread cancellation. Add dedicated mutexes for libatomic and TOD. Close #2629. Close #2630.
2017-11-29riscv/rtems/score/cpu.h: Use RTEMS_NO_RETURN not deprecated ↵Joel Sherrill
RTEMS_COMPILER_NO_RETURN_ATTRIBUTE
2017-11-22powerpc: Remove _BSP_Fatal_error()Sebastian Huber
BSPs can use the bsp_fatal_extension() to provide BSP-specific fatal error handling. There is no need for a _BSP_Fatal_error(). Close #3246.
2017-11-22powerpc: Replace BSP_panic() with rtems_panic()Sebastian Huber
Due to a new rtems_panic() implementation, it is possible to replace the PowerPC-specific BSP_panic() with rtems_panic(). Remove BSP_panic() implementations. Close #3245.
2017-11-22sapi: New implementation of rtems_panic()Sebastian Huber
The previous rtems_panic() implementation was quite heavy weight. It depended on _exit() which calls the global destructors. It used fprintf(stderr, ...) for output which depends on an initialized console device and the complex fprintf(). Introduce a new fatal source RTEMS_FATAL_SOURCE_PANIC for rtems_panic() and output via vprintk(). Update #3244.
2017-11-22INTERNAL_ERROR_POSIX_INIT_THREAD_ENTRY_IS_NULLSebastian Huber
Delete superfluous INTERNAL_ERROR_POSIX_INIT_THREAD_ENTRY_IS_NULL. Update #3243.
2017-11-22score: Simplify global constructionSebastian Huber
Update #3243.
2017-11-20score: Optimize scheduler priority updatesSebastian Huber
Thread priority changes may append or prepend the thread to its priority group on the scheduler ready queue. Previously, a separate priority value and a prepend-it flag in the scheduler node were used to propagate a priority change to the scheduler. Now, use an append-it bit in the priority control and reduce the plain priority value to 63 bits. This change leads to a significant code size reduction (about 25%) of the SMP schedulers. The negligible increase of the standard priority scheduler is due to some additional shift operations (SCHEDULER_PRIORITY_MAP() and SCHEDULER_PRIORITY_UNMAP()). Before: text filename 136 sparc-rtems5/c/erc32/cpukit/score/src/libscore_a-schedulersimpleblock.o 464 sparc-rtems5/c/erc32/cpukit/score/src/libscore_a-schedulersimplechangepriority.o 24 sparc-rtems5/c/erc32/cpukit/score/src/libscore_a-schedulersimple.o 108 sparc-rtems5/c/erc32/cpukit/score/src/libscore_a-schedulersimpleschedule.o 292 sparc-rtems5/c/erc32/cpukit/score/src/libscore_a-schedulersimpleunblock.o 264 sparc-rtems5/c/erc32/cpukit/score/src/libscore_a-schedulersimpleyield.o text filename 280 sparc-rtems5/c/erc32/cpukit/score/src/libscore_a-schedulerpriorityblock.o 488 sparc-rtems5/c/erc32/cpukit/score/src/libscore_a-schedulerprioritychangepriority.o 200 sparc-rtems5/c/erc32/cpukit/score/src/libscore_a-schedulerpriority.o 164 sparc-rtems5/c/erc32/cpukit/score/src/libscore_a-schedulerpriorityschedule.o 328 sparc-rtems5/c/erc32/cpukit/score/src/libscore_a-schedulerpriorityunblock.o 200 sparc-rtems5/c/erc32/cpukit/score/src/libscore_a-schedulerpriorityyield.o text filename 24112 arm-rtems5/c/imx7/cpukit/score/src/libscore_a-scheduleredfsmp.o text filename 37204 sparc-rtems5/c/gr740/cpukit/score/src/libscore_a-scheduleredfsmp.o text filename 42236 powerpc-rtems5/c/qoriq_e6500_32/cpukit/score/src/libscore_a-scheduleredfsmp.o After: text filename 136 sparc-rtems5/c/erc32/cpukit/score/src/libscore_a-schedulersimpleblock.o 272 sparc-rtems5/c/erc32/cpukit/score/src/libscore_a-schedulersimplechangepriority.o 24 sparc-rtems5/c/erc32/cpukit/score/src/libscore_a-schedulersimple.o 108 sparc-rtems5/c/erc32/cpukit/score/src/libscore_a-schedulersimpleschedule.o 292 sparc-rtems5/c/erc32/cpukit/score/src/libscore_a-schedulersimpleunblock.o 264 sparc-rtems5/c/erc32/cpukit/score/src/libscore_a-schedulersimpleyield.o text filename 280 sparc-rtems5/c/erc32/cpukit/score/src/libscore_a-schedulerpriorityblock.o 488 sparc-rtems5/c/erc32/cpukit/score/src/libscore_a-schedulerprioritychangepriority.o 208 sparc-rtems5/c/erc32/cpukit/score/src/libscore_a-schedulerpriority.o 164 sparc-rtems5/c/erc32/cpukit/score/src/libscore_a-schedulerpriorityschedule.o 332 sparc-rtems5/c/erc32/cpukit/score/src/libscore_a-schedulerpriorityunblock.o 200 sparc-rtems5/c/erc32/cpukit/score/src/libscore_a-schedulerpriorityyield.o text filename 18860 arm-rtems5/c/imx7/cpukit/score/src/libscore_a-scheduleredfsmp.o text filename 28520 sparc-rtems5/c/gr740/cpukit/score/src/libscore_a-scheduleredfsmp.o text filename 32664 powerpc-rtems5/c/qoriq_e6500_32/cpukit/score/src/libscore_a-scheduleredfsmp.o
2017-11-20bsps/powerpc: Fix PPC_EXC_CONFIG_USE_FIXED_HANDLERSebastian Huber
For the SPE support we must store the upper half of r3 as well. Update #3085.
2017-11-17cpukit: Add _arc4random_getentropy_fail.Christian Mauderer
Add a default implementation of _arc4random_getentropy_fail with an internal error. Update #3239.
2017-11-17score: Adjust _Scheduler_EDF_SMP_Insert_ready()Sebastian Huber
Use only one parameter to compute the next generation. Use index 0 for LIFO ordering, and index 1 for FIFO ordering.
2017-11-16score: Fix priority ceiling updatesSebastian Huber
We must not clear the priority updates in _Thread_queue_Extract_locked() since this function is used by the priority ceiling surrender operations after the ceiling priority handover from the previous owner to the new owner. This is especially important in SMP configurations. Move the _Thread_queue_Context_clear_priority_updates() invocation to the callers. Close #3237.
2017-11-16score: Fix _Thread_queue_Flush_critical()Sebastian Huber
The thread queue extract operations performed by the _Thread_queue_Flush_critical() may result in a priority change of the thread queue owner. Carry out the scheduler priority update operation. This is especially important in SMP configurations. Close #3236.
2017-11-09score: Change _Timecounter_Time_uptime to int32_tSebastian Huber
Move basic timecounter API shared with BSD network stack to <machine/_timecounter.h>. Update #3185.
2017-11-09posix: Change created_with_explicit_schedulerSebastian Huber
Remove POSIX_API_Control::created_with_explicit_scheduler. Add Thread_Control::was_created_with_inherited_scheduler. This fixes also pthread_getattr_np() for Classic tasks. Update #2514.
2017-11-06score: Use Processor_mask instead of cpu_set_tSebastian Huber
2017-11-06score: _Chain_Insert_ordered_unprotected()Sebastian Huber
Change the chain order relation to use a directly specified left hand side value. This is similar to _RBTree_Insert_inline() and helps the compiler to better optimize the code.
2017-11-06score: Remove superfluous includeSebastian Huber
Update #3059.
2017-11-06score: Add _IO_Printf() and _IO_Vprintf()Sebastian Huber
The previous vprintk() implementation had a questionable licence header, lacks support for the 'z' and 'j' format specifiers, is not robust against invalid format specifiers, uses a global variable for output. Replace it with a stripped down version of the FreeBSD kernel kvprintf() function. The new implementation allows a low overhead rtems_snprintf() if necessary. Update #3199. Close #3216.
2017-11-02posix: Use far future for very long timeoutsSebastian Huber
Close #3205.
2017-11-01cpukit: RISC-V - make riscv32 code work for riscv64 - v2Hesham Almatary
* Use #ifdefs for 32/64 bit code * Use unsigned long which is 32-bit on riscv32 and 64-bit on riscv64 (register size) * Move the code to a new shared riscv folder to be shared between riscv32 and riscv64 * Rename RTEMS_CPU extracted from command line to shared riscv target s/riscv*/riscv Update #3109
2017-10-29score: Fix non-SMP buildSebastian Huber
2017-10-28riscv32: Add missing preinstall.amSebastian Huber
Update #3109.
2017-10-28score: Fix _Scheduler_Set_affinity()Sebastian Huber
2017-10-28score: Simplify SMP get lowest scheduledSebastian Huber
There is no need to pass in the order relation since the scheduled threads reside on an already ordered chain. The caller will decide what to do with the lowest scheduled thread.
2017-10-28cpukit: Add basic riscv32 architecture port v3Hesham Almatary
Limitations: * NO FPU support [TODO] Update #3109
2017-10-28Add riscv32 to autotools files v3Hesham Almatary
2017-10-26score: Delete _Scheduler_Thread_set_priority()Sebastian Huber
2017-10-24score: Move thread queue timeout handlingSebastian Huber
Update #3117. Update #3182.
2017-10-24score: Rename function threadq support functionSebastian Huber
Rename _Thread_queue_Context_set_do_nothing_enqueue_callout() into _Thread_queue_Context_set_enqueue_do_nothing_extra(). More _Thread_queue_Context_set_enqueue_*() functions will follow. Update #3117. Update #3182.
2017-10-24score: Add _Thread_Continue()Sebastian Huber
Update #3117. Update #3182.
2017-10-24score: _Watchdog_Per_CPU_lazy_insert_monotonic()Sebastian Huber
Update #3117. Update #3182.
2017-10-24score: Add _Watchdog_Monotonic_from_timespec()Sebastian Huber
Update #3117. Update #3182.
2017-10-24score: Add _Watchdog_Nanoseconds_per_tickSebastian Huber
Move it from the configuration to a separate variable. Update #3117. Update #3182.
2017-10-24score: _Watchdog_Is_far_future_monotonic_timespecSebastian Huber
Update #3117. Update #3182.
2017-10-24score: Add _Watchdog_Is_valid_interval_timespec()Sebastian Huber
Update #3117. Update #3182.
2017-10-24score: _Watchdog_Is_far_future_realtime_timespec()Sebastian Huber
Update #3117. Update #3182.
2017-10-24score: Rename _Watchdog_Ticks_from_*()Sebastian Huber
Rename _Watchdog_Ticks_from_*() to _Watchdog_Realtime_from_*(). This highlights that these routines are used for the CLOCK_REALTIME watchdogs (in contrast to CLOCK_MONOTONIC). Update #3117. Update #3182.
2017-10-24score: Add _Watchdog_Ticks_per_secondSebastian Huber
This value is frequently used. Avoid the function call overhead and the integer division at run-time. Update #3117. Update #3182.
2017-10-24score: Add _Thread_Add_timeout_ticks()Sebastian Huber
Replace _Thread_Timer_insert_monotonic() with _Thread_Add_timeout_ticks(). Update #3117. Update #3182.
2017-10-21score: Fix warningSebastian Huber
2017-10-17score: Rename _Watchdog_Per_CPU_insert_monotonic()Sebastian Huber
Rename _Watchdog_Per_CPU_insert_monotonic() in _Watchdog_Per_CPU_insert_ticks(). Update #3117. Update #3182.
2017-10-17score: Rename watchdog variantsSebastian Huber
Rename PER_CPU_WATCHDOG_RELATIVE in PER_CPU_WATCHDOG_MONOTONIC to highlight the corresponding POSIX CLOCK_MONOTONIC. Rename PER_CPU_WATCHDOG_ABSOLUTE in PER_CPU_WATCHDOG_REALTIME to highlight the corresponding POSIX CLOCK_REALTIME. Update #3117. Update #3182.
2017-10-12score: Remove unused function declarationSebastian Huber
2017-10-12timecounter: Update FreeBSD identifiersSebastian Huber
Update #3175.
2017-10-12timecounter: Merge FreeBSD change r324528Konstantin Belousov
The th_bintime, th_microtime and th_nanotime members of the timehand all cache the last system time (uptime + boottime). Only the format differs. Do not re-calculate the bintime and simply use the value used to calculate the microtime and nanotime. Group all the updates under the relevant comment. Remove obsoleted XXX part. Submitted by: Sebastian Huber <sebastian.huber@embedded-brains.de> MFC after: 1 week Update #3175.
2017-10-12timecounter: Merge FreeBSD change r315287Eric van Gyzen
Add missing pieces of r315280 I moved this branch from github to a private server, and pulled from the wrong one when committing r315280, so I failed to include two recent commits. Thankfully, they were only cosmetic and were included in the review. Specifically: Add documentation, polish comments, and improve style(9). Tested by: pho (r315280) MFC after: 2 weeks Sponsored by: Dell EMC Differential Revision: https://reviews.freebsd.org/D9791 Update #3175.