summaryrefslogtreecommitdiffstats
path: root/cpukit (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-09-16rtems: Fix message manager documentationSebastian Huber1-2/+2
Correct the description of the ``count`` parameter of rtems_message_queue_flush(). Update #4508.
2021-09-15rtems: Add header files to Doxygen groupsSebastian Huber7-0/+14
2021-09-15rtems: Move Doxygen group definitionSebastian Huber2-10/+8
Move the definition of the top-level Classic API implementation group to an implementation header file.
2021-09-15rtems: Improve Classic API group descriptionSebastian Huber1-1/+1
2021-09-15rtems: Fix message manager documentationSebastian Huber1-8/+10
Remove bogus return status from rtems_message_queue_receive(). Clarify rtems_message_queue_flush(). Update #4508.
2021-09-15rtems: Generate <rtems/extension.h>Sebastian Huber1-177/+588
Remove the duplicated description which is an out dated copy and paste from the Classic API Guide. Instead, thoroughly document the individual extensions. Change license to BSD-2-Clause according to file histories and documentation re-licensing agreement. Update #3899. Update #3993.
2021-09-15rtems: Generate <rtems/rtems/cache.h>Sebastian Huber1-150/+512
Change license to BSD-2-Clause according to file histories and documentation re-licensing agreement. Update #3899. Update #3993. Update #4513.
2021-09-09rtems: Initialize count of postponed jobsSebastian Huber1-0/+1
The rtems_rate_monotonic_get_status() directive returns an arbitrary number for the count of postponed jobs if it is called for a newly created period object. Set the count of postponed jobs to zero during object creation. Close #4511.
2021-09-06rtems: Document time of day constraintsSebastian Huber1-4/+13
Update #4338.
2021-09-06score: Split up rbtreenext.cSebastian Huber5-28/+180
Split up rbtreenext.c since only _RBTree_Minimum() is used by the operating system core services (thread queues and the EDF scheduler). Change license to BSD-2-Clause according to file history and re-licensing agreement. Update #3053.
2021-09-06score: Change TOD_LATEST_YEAR to 2099Sebastian Huber4-41/+47
This simplifies the implementation a bit. Declare _TOD_Days_to_date[] in <rtems/score/todimpl.h>. Make _TOD_Days_per_month[] and _TOD_Days_since_last_leap_year[] static. Update #4338.
2021-09-06score: Simplify _TOD_Validate()Sebastian Huber1-9/+25
Split up the multi line if statement into smaller parts.
2021-09-06score: Limit the CLOCK_REALTIME settingSebastian Huber2-1/+10
Limit the CLOCK_REALTIME setting to ensure that the CLOCK_REALTIME is defined for a system uptime of at least 114 years.
2021-09-06score: Add _TOD_Is_valid_new_time_of_day()Sebastian Huber6-22/+86
Move the TOD validation to the callers of _TOD_Set(). This avoids dead code in case only rtems_clock_set() is used in an application because rtems_clock_set() always calls _TOD_Set() with a valid time of day.
2021-09-06score: Remove TOD_TICKS_PER_SECOND_method()Sebastian Huber3-49/+2
Use _Watchdog_Ticks_per_second instead.
2021-09-06score: Return status in _TOD_Adjust()Sebastian Huber3-4/+14
2021-09-03score: Move _Thread_Dispatch()Sebastian Huber3-20/+62
The _Thread_Dispatch() function was customized over time and now the work is done by _Thread_Do_dispatch() and specialized wrappers. The plain _Thread_Dispatch() is now only used in some CPU ports. Move it to a separate file to avoid dead code in the general. Change license to BSD-2-Clause according to file history and re-licensing agreement. Update #3053.
2021-09-03score: Document thread queue operationsSebastian Huber3-11/+63
2021-09-02libtest: Return fixture context in T_case_begin()Sebastian Huber2-2/+3
This makes it similar to T_push_fixture().
2021-09-01score: Update priority only if necessarySebastian Huber3-12/+16
In _Thread_queue_Flush_critical(), update the priority of the thread queue owner only if necessary. The scheduler update priority operation could be expensive.
2021-09-01score: Remove _Thread_queue_Unblock_critical()Sebastian Huber2-60/+12
This function was only used in one place. Replace it with a call to _Thread_queue_Resume().
2021-09-01score: Remove _Thread_queue_First_locked()Sebastian Huber2-29/+9
The _Thread_queue_First_locked() was only used in one place. Move the code of this inline function to this place.
2021-09-01score: Fix blocking message queue receiveSebastian Huber4-82/+62
In order to ensure FIFO fairness across schedulers, the thread queue surrender operation must be used to dequeue a thread from the thread queue. The thread queue extract operation is intended for timeouts. Add _Thread_queue_Resume() which may be used to make extracted or surrendered threads ready again. Remove the now unused _Thread_queue_Extract_critical() function. Close #4509.
2021-09-01score: Fix priority discipline handlingSebastian Huber8-148/+196
The priority queues in clustered scheduling configurations use a per scheduler priority queue rotation to ensure FIFO fairness across schedulers. This mechanism is implemented in the thread queue surrender operation. Unfortunately some semaphore and message queue directives used wrongly the thread queue extract operation. Fix this through the use of _Thread_queue_Surrender(). Update #4358.
2021-09-01score: Document Futex HandlerSebastian Huber1-2/+40
The behaviour of the futex operations is defined by Linux: https://man7.org/linux/man-pages/man2/futex.2.html Use EAGIN instead of EWOULDBLOCK to be in line with the Linux man page. These error numbers have the same value in Newlib. Using the same error numbers helps to avoid confusion. When you look at the history of the Linux man page you see that they replaced EWOULDBLOCK with EAGAIN over time. At the time of the RTEMS futex implementation they used EWOULDBLOCK.
2021-08-31rtems: Fix partitions with RTEMS_MULIPROCESSINGSebastian Huber1-1/+1
Replace call to removed _Partition_Free() with a call to _Objects_Free().
2021-08-21libmisc/shell: Check the shell command pointers when adding a commandChris Johns1-0/+5
2021-08-21libmisc/fdt: fix node initialise error with RTEMS_DEBUGChris Johns1-0/+2
2021-08-19cpukit/mghttpd: Support all descriptors in selectChris Johns1-0/+31
- Support all possible descriptors in a select call. Borrowed from Christain and his mDNS change in LibBSD - If select (or poll) fails pause for a bit rather than locking up in a hard loop
2021-08-18confstr() support for RTEMSEshan dhawan2-0/+128
Closes #3373 confstr() style update Signed-off-by: Eshan Dhawan <eshandhawan51@gmail.com>
2021-08-18score: Delete unused rtems_ada_selfSebastian Huber1-5/+0
2021-08-18score: Make zombie registry observableSebastian Huber2-16/+40
This helps to write tests for _Thread_Wait_for_execution_stop(). Rename Thread_Zombie_control in Thread_Zombie_registry.
2021-08-18score: Simplify _Thread_Kill_zombies()Sebastian Huber1-8/+11
2021-08-18score: Simplify _Per_CPU_Wait_for_job()Sebastian Huber1-1/+0
The _SMP_Fatal() is a no-return function, so the "break" statement is superfluous.
2021-08-18score: Simplify _Thread_Create_idle_for_CPU()Sebastian Huber1-7/+1
Online processors have a scheduler assigned.
2021-08-12score: Simplify _Scheduler_Tick()Sebastian Huber1-4/+22
The NULL pointer check for the executing thread was introduced by commit: commit be3c257286ad870d8d1a64941cde53fd2d33a633 Author: Sebastian Huber <sebastian.huber@embedded-brains.de> Date: Thu Jun 5 11:17:26 2014 +0200 score: Avoid NULL pointer access Check that the executing thread is not NULL in _Scheduler_Tick(). It may be NULL in case the processor has an optional scheduler assigned and the system was not able to start the processor. However, it is no longer necessary since now the clock interrupt is distributed to the online processors.
2021-08-12score: Replace the single use of a sequence lockSebastian Huber3-30/+65
In SMP configurations, on 64-bit architectures use plain atomic operations to set/get the priority value of a scheduler node. On 32-bit architectures use an ISR lock. Using a sequence lock has no real benefit since it uses atomic read-modify-write operations for both the read and the write lock. Simply use a ticket lock instead so that only one SMP synchronization primitive is used for everything.
2021-08-12score: Replace priority prepend it with an enumSebastian Huber13-71/+108
Use the new Priority_Group_order enum instead of a boolean to indicated if a priority should be inserted as the first or last node into its priority group. This makes the code more expressive. It is also a bit more efficient since a branch in _Scheduler_Node_set_priority() is avoided and a simple bitwise or operation can be used.
2021-08-12rtems: Fix rtems_partition_return_buffer()Sebastian Huber5-17/+30
The rtems_partition_return_buffer() wrongly accepted which were exactly at the buffer area end. Use the buffer area limit address for the range checking. Close #4490.
2021-08-11Test needed for timer_create with CLOCK_MONOTONCZacchaeus Leung3-19/+33
the timer_create() method can use CLOCK_MONOTONIC but there was no test for this. Also it implements the functionality to create a CLOCK_MONOTONIC timer and gettime() . Closes #3888
2021-08-09Turn off executable permissions for a number of source filesJoel Sherrill1-0/+0
Cloning under Cygwin turned off executable permission on these files. This shows them as modified even though they have not explicitly been touched. Executable permission should not have been on for these files so this is just a minor clean up.
2021-08-03score: Disable interrupts in SMP shutdownSebastian Huber1-0/+5
2021-08-02rtems: Generate <rtems/bspIo.h>Sebastian Huber8-91/+324
Change license to BSD-2-Clause according to file histories and documentation re-licensing agreement. Place the group into the I/O Manager group. Add all source files to the group. Update #3899. Update #3993. Update #4482.
2021-07-29score: Change _SMP_Send_message() parameter typeSebastian Huber3-9/+8
Use the processor control to specify the target processor since this is what the callers have available.
2021-07-29score: Assert job properties in _Per_CPU_Add_job()Sebastian Huber1-0/+2
2021-07-29score: Add _Per_CPU_Submit_job()Sebastian Huber5-12/+27
2021-07-29score: Split SMP multicast action moduleSebastian Huber5-32/+157
Split up the SMP multicast action module since the use of the SMP multicast action variants depend on the architecture and BSP.
2021-07-28score: Return value in _SMP_Process_message()Sebastian Huber1-0/+2
2021-07-28score: Canonicalize _CPU_Fatal_halt()Sebastian Huber51-287/+225
Move _CPU_Fatal_halt() declaration to <rtems/score/cpuimpl.h> and make sure it is a proper declaration of a function which does not return. Fix the type of the error code. If necessary, add the implementation to cpu.c. Implementing _CPU_Fatal_halt() as a function makes it possible to wrap this function for example to fully test _Terminate().
2021-07-28score: Move per-CPU jobs supportSebastian Huber3-86/+128
Add percpujobs.c to contain the per-CPU jobs implementation.