summaryrefslogtreecommitdiffstats
path: root/cpukit (follow)
Commit message (Collapse)AuthorAgeFilesLines
* microblaze: Rework for RTEMS 6Alex White2021-10-1312-1490/+963
| | | | | This reworks the existing MicroBlaze architecture port and BSP to achieve basic functionality using the latest RTEMS APIs.
* bsps: Add MicroBlaze FPGA BSPHesham ALMatary2021-10-135-79/+238
|
* score: Add MicroBlaze portJoel Sherrill2021-10-134-0/+1626
|
* Add support for IDLE Thread stack allocatorJoel Sherrill2021-10-116-8/+133
| | | | | | | | Add a stack allocator hook specifically for allocation of IDLE thread stacks. This allows the user to decide if IDLE thread stacks are statically allocated or handled by the same custom allocator mechanism as other thread stacks. Closes #4524.
* score: _Thread_queue_Surrender_priority_ceiling()Sebastian Huber2021-10-111-2/+2
| | | | | | | | Do not use a direct thread dispatch in _Thread_queue_Surrender_priority_ceiling() since it may be used in condition variables using POSIX mutexes. Close #4526.
* libdl/rtl-mdreloc-h8300.c: Remove remnant of h8300 portJoel Sherrill2021-10-081-212/+0
| | | | Updates #2452.
* score: Always check queue in _Thread_Wait_cancel()Sebastian Huber2021-10-061-2/+2
| | | | | | Commit 18c8a270c296addff87f96b8c248f27eba31c24f removed _Thread_queue_Do_nothing_extract() so we have to check for a non-NULL queue in all configurations.
* rtems: Set postponed jobs in rate-monotonic cancelSebastian Huber2021-10-062-1/+2
| | | | | | | | Set the postponed jobs count to zero in rtems_rate_monotonic_cancel() so that rtems_rate_monotonic_get_status() returns a consistent status for inactive periods. Update #4511.
* score: Optimize EDF SMP scheduler opsSebastian Huber2021-10-061-1/+1
| | | | | | | The schedule operation is only called by rtems_task_mode(). It is called if preempt mode of the executing thread changes from disabled to enabled. Since the EDF SMP scheduler does not support the disabled preemption mode, the schedule operation is never called.
* rtems: Generate <rtems/cpuuse.h>Sebastian Huber2021-10-061-39/+180
| | | | Write the documentation from scratch.
* posix: Remove "RTEMS" from POSIX API groupSebastian Huber2021-10-061-3/+4
| | | | | | Clarify group description. Update #3706.
* scoe: Move workspace group definitionSebastian Huber2021-10-062-10/+10
| | | | | | Define the group in the header file which is used by <rtems/confdefs.h>. Update #3706.
* rtems: Add ASR implementation to existing groupSebastian Huber2021-10-061-2/+2
| | | | Update #3706.
* score: Add Hash Handler to groupSebastian Huber2021-10-061-0/+2
| | | | Update #3706.
* rtems: Canonicalize Doxygen in <rtems/counter.h>Sebastian Huber2021-10-061-2/+3
| | | | Update #3706.
* rtems: Canonicalize Doxygen in <rtems/seterr.h>Sebastian Huber2021-10-061-5/+5
| | | | Update #3706.
* improve the format error reporting on i386Zacchaeus Leung2021-10-041-4/+4
|
* cpukit/aarch64: Use correct interrupt level typesKinsey Moore2021-10-012-4/+4
| | | | | All other architectures use uint32_t for interrupt levels and there is no reason not to do so on AArch64.
* cpukit/aarch64: Use correct context register setsKinsey Moore2021-10-012-55/+123
| | | | | | | Context validation for AArch64 was ported from the ARM implementation without a reinterpretation of the actual requirements. The spcontext01 test just happened to pass because the set of scratch registers in ARM is a subset of the scratch registers in AArch64.
* score: Add Thread_queue_Deadlock_statusSebastian Huber2021-10-014-48/+86
| | | | | | Replace the boolen return value with the new enum Thread_queue_Deadlock_status. This improves the code readability. Improve documentation. Shorten function names.
* score: Avoid dead code in thread queue surrenderSebastian Huber2021-10-011-12/+67
| | | | | | | | For uniprocessor configurations, this patch removes dead code in the _Thread_queue_Surrender() and _Thread_queue_Surrender_priority_ceiling() functions. Dead code is removed from _Thread_queue_Surrender_sticky().
* score: Remove _Thread_queue_Do_nothing_extract()Sebastian Huber2021-09-301-14/+2
| | | | | | | This function was unused. It was a relict of the thread queue rework done during the SMP support development. In an early stage, the extract operation was called with a NULL thread queue. However, this is no longer the case. The extract operation is only called if we have a non-NULL thread queue.
* score: Regenerate <rtems/score/basedefs.h>Sebastian Huber2021-09-301-1/+1
| | | | Reflect renamed specification item.
* score: Add Doxygen group for <sys/lock.h> mutexesSebastian Huber2021-09-301-1/+15
|
* rtems: Adjust parameter namesSebastian Huber2021-09-302-13/+13
| | | | | | | Adjust parameter names to match with the declaration. This avoid using a name reserved by the C standard: "time". Close #4035.
* rtems: Justify integer conversionsSebastian Huber2021-09-301-3/+8
| | | | Close #2548.
* score: Improve variable names in thread initSebastian Huber2021-09-221-25/+25
|
* score: Simplify _Thread_Try_initialize()Sebastian Huber2021-09-221-72/+108
| | | | | Move a code block to its own new function _Thread_Initialize_scheduler_and_wait_nodes(). Add comments.
* cpukit: Add AArch64 SMP SupportKinsey Moore2021-09-215-9/+160
| | | | This adds SMP support for AArch64 in cpukit and for the ZynqMP BSPs.
* build: Remove old build systemSebastian Huber2021-09-2124-2957/+0
| | | | | Close #3250. Close #4081.
* libtest: Improve T_now_tick()Sebastian Huber2021-09-211-0/+45
| | | | | | | The T_now_tick() is a fall back time measurement using the CPU counter in case no Clock Driver is configured. Some CPU counter may overflow during the test execution. Accumulate the elapsed time to reduce the chance of CPU counter overflows.
* score: Remove unused default scheduler opsSebastian Huber2021-09-212-107/+13
| | | | | | | | | | If SMP support is enabled and the system has exactly one processor, then it may use an uniprocessor scheduler. The ask for help, reconsider help request, and withdraw node operations can be NULL in this case, since they are only used if a thread has at least one helping scheduler node. At least two schedulers are required to get a helping node and each scheduler involved must own at least one processor. This is not possible on a system with exactly one processor.
* score: Ensure only one CPU if requiredSebastian Huber2021-09-213-1/+22
| | | | | | | Issue the new fatal SMP error SMP_FATAL_SCHEDULER_REQUIRES_EXACTLY_ONE_PROCESSOR if the system starts with not exactly one processor and an uniprocessor scheduler is configured.
* score: Provide two thread pin/unpin defaultsSebastian Huber2021-09-217-17/+111
| | | | | | | | | | | | | | The uniprocessor schedulers do not support systems with more than more processors. So they rivially support thread pinning and thus the SMP_FATAL_SCHEDULER_PIN_OR_UNPIN_NOT_SUPPORTED cannot happen. Add a second default implementation for SMP schedulers which do not support thread pinning. Change license to BSD-2-Clause according to file history and re-licensing agreement. Update #3053.
* score: SCHEDULER_OPERATION_DEFAULT_GET_SET_AFFINITYSebastian Huber2021-09-217-8/+20
| | | | | Rename SCHEDULER_OPERATION_DEFAULT_GET_SET_AFFINITY in SCHEDULER_DEFAULT_SET_AFFINITY_OPERATION. Add Doxygen comment.
* score: SCHEDULER_OPERATION_DEFAULT_ASK_FOR_HELPSebastian Huber2021-09-215-6/+17
| | | | | Rename SCHEDULER_OPERATION_DEFAULT_ASK_FOR_HELP in SCHEDULER_DEFAULT_SMP_OPERATIONS. Add a Doxygen comment.
* pxcdevctl: Adjust for standardRyan Long2021-09-201-8/+72
| | | | | | | | psxdevctl is supposed to return the value in errno. Before, it was returning -1 and setting errno. Changed the tests to reflect these changes. Added code from RRADE's posix_devctl.c. Closes #4506
* rtems: Fix message manager documentationSebastian Huber2021-09-161-2/+2
| | | | | | | Correct the description of the ``count`` parameter of rtems_message_queue_flush(). Update #4508.
* rtems: Add header files to Doxygen groupsSebastian Huber2021-09-157-0/+14
|
* rtems: Move Doxygen group definitionSebastian Huber2021-09-152-10/+8
| | | | | Move the definition of the top-level Classic API implementation group to an implementation header file.
* rtems: Improve Classic API group descriptionSebastian Huber2021-09-151-1/+1
|
* rtems: Fix message manager documentationSebastian Huber2021-09-151-8/+10
| | | | | | | Remove bogus return status from rtems_message_queue_receive(). Clarify rtems_message_queue_flush(). Update #4508.
* rtems: Generate <rtems/extension.h>Sebastian Huber2021-09-151-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.
* rtems: Generate <rtems/rtems/cache.h>Sebastian Huber2021-09-151-150/+512
| | | | | | | | | Change license to BSD-2-Clause according to file histories and documentation re-licensing agreement. Update #3899. Update #3993. Update #4513.
* rtems: Initialize count of postponed jobsSebastian Huber2021-09-091-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.
* rtems: Document time of day constraintsSebastian Huber2021-09-061-4/+13
| | | | Update #4338.
* score: Split up rbtreenext.cSebastian Huber2021-09-065-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.
* score: Change TOD_LATEST_YEAR to 2099Sebastian Huber2021-09-064-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.
* score: Simplify _TOD_Validate()Sebastian Huber2021-09-061-9/+25
| | | | Split up the multi line if statement into smaller parts.
* score: Limit the CLOCK_REALTIME settingSebastian Huber2021-09-062-1/+10
| | | | | Limit the CLOCK_REALTIME setting to ensure that the CLOCK_REALTIME is defined for a system uptime of at least 114 years.