summaryrefslogtreecommitdiffstats
path: root/spec/build/cpukit (follow)
Commit message (Collapse)AuthorAgeFilesLines
* score: Split wkspace.cSebastian Huber2021-11-301-0/+2
| | | | Splitting the file avoids unnecessary link-time dependencies.
* score: Move _Thread_queue_Extract()Sebastian Huber2021-11-231-0/+1
| | | | | | | Move _Thread_queue_Extract() since this function is not used by the core services (threads, semaphores, mutexes, message queues). Update #4546.
* score: Add _Thread_MP_Extract_proxy()Sebastian Huber2021-11-232-1/+1
| | | | | | | | Remove _Thread_queue_Extract_with_proxy() and move the proxy extraction to _Thread_MP_Extract_proxy(). Move similar code blocks of the previous caller of _Thread_queue_Extract_with_proxy() to helper functions. Update #4546.
* score: Add SMP scheduler make/clean stickySebastian Huber2021-11-231-0/+1
| | | | | | | | | | | | | | | | | | | | This patch fixes the following broken behaviour: While a thread is scheduled on a helping scheduler, while it does not own a MrsP semaphore, if it obtains a MrsP semaphore, then no scheduler node using an idle thread and the ceiling priority of the semaphore is unblocked for the home scheduler. This could lead to priority inversion issues and is not in line with the MrsP protocol. Introduce two new scheduler operations which are only enabled if RTEMS_SMP is defined. The operations are used to make the scheduler node of the home scheduler sticky and to clean the sticky property. This helps to keep the sticky handing out of the frequently used priority update operation. Close #4532.
* score: Add red-black tree append/prependSebastian Huber2021-11-231-0/+2
| | | | | | | These functions are a faster alternative to _RBTree_Insert_inline() if it is known that the new node is the maximum/minimum node. Update #4531.
* rtems: Add external functionsSebastian Huber2021-11-181-0/+2
| | | | | | These external functions rtems_scheduler_get_processor() and rtems_scheduler_get_processor_maximum() which may be used by bindings for languages other than C/C++.
* build: Optional __RTEMS_MAJOR__ via command lineSebastian Huber2021-11-161-1/+1
| | | | Update #4548.
* Revert "optvermaj.yml: Allow __RTEMS_MAJOR__ to be overridden so RTEMS 7 ↵Sebastian Huber2021-11-151-5/+3
| | | | | | tools can be tested" This reverts commit d1bbfbea5f60f552b2b3138bb1df35c3372f2461.
* score: Introduce CPU budget operationsSebastian Huber2021-11-151-1/+3
| | | | | | | | | | | | | | This patch set replaces the CPU budget algorithm enumeration with a set of CPU budget operations which implement a particular CPU budget algorithm. This helps to hide the CPU budget algorithm implementation details from the general thread handling. The CPU budget callouts are turned into CPU budget operations. This slightly reduces the size of the thread control block. All schedulers used the default scheduler tick implementation. The tick scheduler operation is removed and the CPU budget operations are directly used in _Watchdog_Tick() if the executing thread uses a CPU budget algorithm. This is performance improvement for all threads which do not use a CPU budget algorithm (default behaviour).
* optvermaj.yml: Allow __RTEMS_MAJOR__ to be overridden so RTEMS 7 tools can ↵Joel Sherrill2021-11-121-3/+5
| | | | be tested
* cpukit/aarch64: Add libdebugger supportKinsey Moore2021-11-013-0/+18
| | | | | | This adds support for libdebugger under AArch64 using software breakpoints and the single-step execution mode present in all AArch64 CPUs.
* aarch64: Break out MMU definitionsKinsey Moore2021-11-011-0/+1
| | | | | | This moves the AArch64 MMU memory type definitions into cpukit for use by libdebugger since remapping of memory is required to insert software breakpoints.
* cpukit: Add signal mapping supportKinsey Moore2021-10-292-0/+18
| | | | | | This adds a confdef option allowing an application to request mapping machine exceptions to POSIX signals. This is required for some languages such as Ada.
* cpukit/aarch64: Add exception extensions supportKinsey Moore2021-10-291-0/+1
| | | | | This adds the function implementations necessary to add exception extensions support to AArch64.
* cpukit: Add exception extensionsKinsey Moore2021-10-292-0/+20
| | | | | | | | This adds the set of functions necessary to allow more generic handling of machine exceptions. This initial patch offers the ability to manipulate a CPU_Exception_frame and resume execution using that exception information with or without thread dispatch. These functions are gated behind the RTEMS_EXCEPTION_EXTENSIONS configuration option.
* rtems: Fix rate monotonic statisticsSebastian Huber2021-10-251-0/+1
| | | | | | | | | | | | | | | The rate monotonic period statistics were affected by rtems_cpu_usage_reset(). The logic to detect and work around a CPU usage reset was broken. The Thread_Contol::cpu_time_used is changed to contain the processor time used throughout the entire lifetime of the thread. The new member Thread_Contol::cpu_time_used_at_last_reset is added to contain the processor time used at the time of the last reset through rtems_cpu_usage_reset(). This decouples the resets of the CPU usage and the rate monotonic period statistics. Update #4528.
* spec/libdebugger: Only enable for supported architecturesChris Johns2021-10-223-1/+19
| | | | Closes #4533
* microblaze: Rework for RTEMS 6Alex White2021-10-132-0/+31
| | | | | This reworks the existing MicroBlaze architecture port and BSP to achieve basic functionality using the latest RTEMS APIs.
* Add support for IDLE Thread stack allocatorJoel Sherrill2021-10-111-0/+1
| | | | | | | | 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.
* cpukit: Add AArch64 SMP SupportKinsey Moore2021-09-211-0/+4
| | | | This adds SMP support for AArch64 in cpukit and for the ZynqMP BSPs.
* score: Remove unused default scheduler opsSebastian Huber2021-09-211-1/+0
| | | | | | | | | | 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: Provide two thread pin/unpin defaultsSebastian Huber2021-09-211-0/+1
| | | | | | | | | | | | | | 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: Split up rbtreenext.cSebastian Huber2021-09-061-0/+3
| | | | | | | | | | 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: Add _TOD_Is_valid_new_time_of_day()Sebastian Huber2021-09-061-0/+1
| | | | | | 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.
* score: Remove TOD_TICKS_PER_SECOND_method()Sebastian Huber2021-09-061-1/+0
| | | | Use _Watchdog_Ticks_per_second instead.
* score: Move _Thread_Dispatch()Sebastian Huber2021-09-031-0/+1
| | | | | | | | | | | | 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.
* confstr() support for RTEMSEshan dhawan2021-08-181-0/+1
| | | | | | | | Closes #3373 confstr() style update Signed-off-by: Eshan Dhawan <eshandhawan51@gmail.com>
* build: Merge default-by-family into by-variantSebastian Huber2021-08-1858-58/+0
| | | | | | | Prefix the BSP family name with "bsps/" to make it distinct to the BSP variant names. Update #4468.
* score: Split SMP multicast action moduleSebastian Huber2021-07-291-0/+3
| | | | | Split up the SMP multicast action module since the use of the SMP multicast action variants depend on the architecture and BSP.
* score: Move per-CPU jobs supportSebastian Huber2021-07-281-2/+2
| | | | Add percpujobs.c to contain the per-CPU jobs implementation.
* build: Use BSP family for optionsChris Johns2021-07-1558-0/+58
| | | | | | | - Optionally add support for 'default-by-family' to allow option to be set by a family and so all related BSPs Close #4468
* sparc: Simplify trap table initializationSebastian Huber2021-06-241-0/+1
| | | | | | | | | | | | | | | Move _ISR_Handler() to a separate file since it is now only used if a handler is installed by _CPU_ISR_install_raw_handler(). Statically initialize the traps for external interrupts to use the new _SPARC_Interrupt_trap() which directly dispatches the interrupt handlers installed by rtems_interrupt_handler_install() via the BSP-provided _SPARC_Interrupt_dispatch(). Since the trap table is now fully statically initialized, there is no longer a dependency on the Cache Manager in the default configuration. Update #4458.
* sparc: More reliable bad trap handlingSebastian Huber2021-06-241-0/+2
| | | | | | | | | | | | | Statically initialize the trap table in start.S to jump to _SPARC_Bad_trap() for all unexpected traps. This enables a proper RTEMS fatal error handling right from the start. Do not rely on the stack and register settings which caused an unexpected trap. Use the ISR stack of the processor to do the fatal error handling. Save the full context which caused the trap. Fatal error handler may use it for error logging. Unify the _CPU_Exception_frame_print() implementations and move it to cpukit. Update #4459.
* sparc: Move ISR handler install routinesSebastian Huber2021-06-241-0/+1
| | | | | | | | Move _CPU_ISR_install_raw_handler() and _CPU_ISR_install_vector() to separate files. The goal is to make their use optional. Update #4458. Update #4459.
* score: Move _ISR_Vector_table[] to separate fileSebastian Huber2021-06-241-0/+1
| | | | | | | | | | The _ISR_Handler_initialization() does not touch the _ISR_Vector_table[]. Move the definition of _ISR_Vector_table[] to a separate file. Change license to BSD-2-Clause according to file history and re-licensing agreement. Update #3053.
* score: Add PER_CPU_DATA_NEED_INITIALIZATION()Sebastian Huber2021-06-101-0/+1
| | | | | | | | | Make the initialization of the per-CPU data optional. Change license to BSD-2-Clause according to file history and re-licensing agreement. Update #3053.
* Change filesystem utime_h handler to utimens_hRyan Long2021-05-281-2/+2
| | | | | | | Also updated licenses. Closes #4400 Updates #3899
* libcsupport: Added futimens() and utimensat()Ryan Long2021-05-281-0/+3
| | | | | | | | | | Created futimens.c and utimensat.c to add support for the POSIX methods futimens() and utimensat(). utime() and utimes() are considered obsolote by POSIX, but RTEMS will continue to support them. Closes #4396
* bsps/aarch64: Break out system registersKinsey Moore2021-05-271-0/+1
| | | | | Break out system register definitions and accessors so that they're usable by other parts of RTEMS.
* score: Move _Thread_queue_Queue_get_name_and_id()Sebastian Huber2021-05-171-0/+1
| | | | | | | | | | Move this diagnostic function to a separate file since it does not provide a core function of the system. Change license to BSD-2-Clause according to file history and re-licensing agreement. Update #3053.
* posix: Move clock_nanosleep()Sebastian Huber2021-05-171-0/+1
| | | | | | | Move clock_nanosleep() to a separate file to avoid a dependency on errno which pulls in the Newlib reentrancy support. This is an issue since most parts which are pulled in cannot be garbage collected by the linker due to the system initialization linker set.
* score: Rename _Stack_Free_nothing()Sebastian Huber2021-05-111-1/+1
| | | | | | | Rename _Stack_Free_nothing() in _Objects_Free_nothing() to make it reusable for the message queue buffers. Update #4007.
* Use alias for rtems_task_self() and pthread_self()Sebastian Huber2021-04-301-2/+1
| | | | This may reduce the code size a bit.
* libcsupport: Move rtems_calloc()Sebastian Huber2021-04-201-0/+1
| | | | | | | | | Move rtems_calloc() since it only depends on rtems_malloc(). This may make it easier to customize the heap allocator. Change licence to BSD-2-Clause according to file history. Update #3053.
* Revert "cpukit: Remove telnetd"Vijay Kumar Banerjee2021-04-132-0/+26
| | | | This reverts commit 3299dda2454a8847c670a732f6c12ef1f2cc5dd0.
* cpukit: Remove telnetdVijay Kumar Banerjee2021-04-072-26/+0
| | | | Update #3850
* cpukit/libfs: Remove nfsclientVijay Kumar Banerjee2021-04-072-25/+0
| | | | Update #3850
* cpukit: remove pppdVijay Kumar Banerjee2021-04-073-36/+0
| | | | Update #3850
* cpukit: Move ftpfs from libnetworking to libfsVijay Kumar Banerjee2021-04-072-2/+2
| | | | Update #3850
* spec: Remove RTEMS_NETWORKING optionsVijay Kumar Banerjee2021-04-074-346/+0
| | | | Update #3850