summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems (unfollow)
Commit message (Collapse)AuthorFilesLines
3 daysscore: Account for <sys/bitset.h> API changesSebastian Huber1-17/+73
Update #4667.
3 daysscore: Remove unused _Processor_mask_Nand()Sebastian Huber1-16/+0
Update #4667.
3 daysscore: Make SMP only code explicitSebastian Huber1-28/+5
Conditional expressions with inline functions are not optimized away if optimization is disabled. Avoid such expressions to prevent dead branches. It helps also during code review to immediately see if a loop is used or not.
5 daysTFTPFS: Implement block and window size optionsFrank K├╝hndel1-14/+393
The original file cpukit/libfs/src/ftpfs/tftpDriver.c is split into two: tftpfs.c - This file contains the code from tftpDriver.c related to file system operations such as mount(), open(), read(), and so on. tftpDriver.c - In the original file remains only the code related to networking. This code implements the Trivial File Transfer Protocol (TFTP). Moreover, the code is extended to support * RFC 2347 TFTP Option Extension * RFC 2348 TFTP Blocksize Option * RFC 7440 TFTP Windowsize Option Update #4666.
2022-05-23timecounter.h: Add _Timecounter_Discipline()Gabriel Moyano1-0/+17
Update #2349.
2022-05-23score: Rename tc_getfrequency()Gabriel Moyano1-0/+8
Rename tc_getfrequency() to _Timecounter_Get_frequency(). Update #2349.
2022-05-12score: Add SMP priority affinity scheduler yieldTian Ye1-1/+7
2022-05-04ftpd.h: Add file header and licenseRyan Long1-1/+30
This file had no header, copyright, or license. Based on git history, added appropriate copyright and license.
2022-05-04cpukit/include/rtems: Add file headers and licensesRyan Long2-0/+53
These files had no header, copyright, or licenses. Based on git history, added appropriate copyright and license.
2022-05-04cpukit/include: Adding file headers and licensesRyan Long4-2/+113
These files had no file header, copyright, or license. Based on git history, added appropriate copyright and license.
2022-04-28heap: Fix heap statistics with protection enabledSebastian Huber1-9/+1
Close #4644.
2022-04-06shell: Add rtems_shell_run_main_loop()Sebastian Huber1-0/+25
In contrast to rtems_shell_main_loop(), this new function does not perform all sorts of initialization based on environment settings. For example, due to the use of isatty() in rtems_shell_main_loop() it is impossible to run an interactive shell through a socket connection.
2022-04-05Update email address of Fernando Ruiz Casas to <fruizcasas@gmail.com>Joel Sherrill3-14/+20
This was requested to be executed prior to relicensing to BSD-2.
2022-04-01cpukit/include/rtems/timespec.h: Change license to BSD-2Joel Sherrill1-3/+22
Permission received from Krzysztof Miesowicz. Updates #3053.
2022-04-01cpukit/include/rtems/cbs.h: Change license to BSD-2Joel Sherrill1-3/+22
Permission received from Petr Benes Updates #3053.
2022-03-29rtems: Clarify scheduler of created taskSebastian Huber1-3/+3
2022-03-25cpukit/include/rtems/confdefs/libpci.h: Manual file header clean upJoel Sherrill1-8/+8
2022-03-25cpukit/include/sys: Change license to BSD-2.Joel Sherrill29-91/+642
Updates #3053.
2022-03-25cpukit/include/rtems: Change license to BSD-2Joel Sherrill73-219/+1606
Updates #3053.
2022-03-24cpukit/: Update Eric Norum contact info and normalize file headersJoel Sherrill1-7/+28
2022-03-24smp: Add fatal errorSebastian Huber1-1/+2
Add SMP-specifc SMP_FATAL_MULTITASKING_START_ON_NOT_ONLINE_PROCESSOR fatal error. This fatal error helps to diagnose a broken SMP startup sequence. Without this error a context switch using the NULL pointer for the thread control block happens which may be difficult to debug.
2022-03-24libtest: Add scheduler test supportSebastian Huber1-0/+290
Add support to record scheduler operations. This support is especially important for tests in SMP configurations since the thread switch extension is quite difficult to use due to the asynchronous nature of thread dispatching. In contrast, the scheduler operations occur normally in a deterministic order. Update #3716.
2022-03-24score: Add _IO_Relax()Sebastian Huber1-0/+8
This function may be used to burn a couple of processor cycles with minimum impact on the system bus. It may be used in busy wait loops. Since it is a global function, it is possible to wrap it in device driver test code.
2022-03-18thread.hpp: Fix redefinition of default argumentSebastian Huber1-18/+14
A default argument shall be defined only once. Close #4632.
2022-03-16bsps/irq: Improve affinity set handlingSebastian Huber1-1/+8
Restrict the affinity set to the set of online processors. Make sure the affinity set for an interrupt vector contains at least one online processor. Update #3269.
2022-03-10cpukit: Automated IMD header file clean upChristian Mauderer6-6/+6
Use the same form of IMD in all copyright lines Update #4625.
2022-03-10bsps and cpukit: Manual file header clean upChristian Mauderer5-80/+53
Updates #4625.
2022-03-10cpukit/: Scripted embedded brains header file clean upJoel Sherrill41-254/+4
Updates #4625.
2022-02-28cpukit/include/rtems/posix/*.h: Change license to BSD-2Joel Sherrill26-78/+572
Updates #3053.
2022-02-28cpukit/include/rtems/rtems/*.h: Change license to BSD-2Joel Sherrill34-102/+748
Updates #3053.
2022-02-28cpukit/include/rtems/score/[s-z]*.h: Change license to BSD-2Joel Sherrill53-159/+1166
Updates #3053.
2022-02-28cpukit/include/rtems/score/[a-r]*.h: Change license to BSD-2Joel Sherrill50-150/+1100
Updates #3053.
2022-02-21kern_ntptime.c: Port to RTEMSSebastian Huber1-0/+9
Remove previous adjtime() implementation. Update #2348.
2022-02-21config: CONFIGURE_DISABLE_NEWLIB_REENTRANCYSebastian Huber1-8/+9
Do not initialize Thread_Control::libc_reent if CONFIGURE_DISABLE_NEWLIB_REENTRANCY is defined. This helps to catch errors with a NULL pointer exception rather than a corruption of the thread control block.
2022-02-10termios: Pass number of sent chars to l_startChristian Mauderer1-1/+5
At the moment the line discipline start function (l_start) has no possibility to get feedback about the number of characters that have been sent. This patch passes that information via an additional parameter. The change might trigger a warning on existing code because of a pointer mismatch but it shouldn't break it. An existing function with the old API will just ignore the additional parameter. Update #4493
2022-01-27Remove obsolete rtems_gxx_*() implementationSebastian Huber2-82/+2
GCC versions prior to 6.1 used a RTEMS thread model based on rtems_gxx_*() functions. GCC version 6.1 or later uses the self-contained synchronization objects of Newlib <sys/lock.h> for the RTEMS thread model. Remove the obsolete implementation. Close #3143.
2021-12-22rtems: Fix Clock Manager parameter descriptionsSebastian Huber1-8/+8
Update #4572.
2021-12-13rtems: Improve ordering in <rtems/rtems/intr.h>Sebastian Huber1-284/+284
Move the data structure definitions closer to the directives which use them.
2021-12-09Avoid ISR_LOCK_MEMBER() since it confuses DoxygenSebastian Huber6-7/+17
If RTEMS_SMP is not defined, then Doxygen adds the comments intended for conditional the lock member to the next member.
2021-12-07score: Fix _Workspace_Initialize_for_one_area()Sebastian Huber1-14/+20
In _Workspace_Initialize_for_one_area(), properly check if there is enough free memory available for the configured workspace size. The bug was introduced by commit 3d0620b607ff6459fec9d30efc1e0589bbd010f9.
2021-12-07score: Fix atomic stores for C++Sebastian Huber1-3/+3
Close #4566.
2021-12-02rtems: Move all Interrupt Manager stuff to intr.hSebastian Huber2-2274/+2272
Since the previous Interrupt Manager Extension API moved to the Interrupt Manager, we can move the interfaces to <rtems/rtems/intr.h> so that they are available via #include <rtems.h>.
2021-12-02rtems: Move scheduler directives to own headerSebastian Huber3-479/+560
Move all rtems_scheduler_* directives to the new header file <rtems/rtems/scheduler.h>. Add a Scheduler Manager API and implementation group.
2021-11-30libc: Optimize malloc() initializationSebastian Huber3-5/+191
The BSPs provide memory for the separate C Program Heap initialization via _Memory_Get(). Most BSPs provide exactly one memory area. Only two BSPs provide more than one memory area (arm/altera-cyclone-v and bsps/powerpc/mpc55xxevb). Only if more than one memory area is provided, there is a need to use _Heap_Extend(). Provide two implementations to initialize the separate C Program Heap and let the BSP select one of the implementations based on the number of provided memory areas. This gets rid of a dependency on _Heap_Extend(). It also avoids dead code sections for most BSPs. Change licence to BSD-2-Clause according to file history. Update #3053.
2021-11-30score: Optimize Workspace Handler initializationSebastian Huber3-10/+244
The BSPs provide memory for the workspace initialization via _Memory_Get(). Most BSPs provide exactly one memory area. Only two BSPs provide more than one memory area (arm/altera-cyclone-v and bsps/powerpc/mpc55xxevb). Only if more than one memory area is provided, there is a need to use _Heap_Extend(). Provide two implementations to initialize the workspace handler and let the BSP select one of the implementations based on the number of provided memory areas. This gets rid of a dependency on _Heap_Extend(). It also avoids dead code sections for most BSPs.
2021-11-23rtems: Replace "precision" with "resolution"Sebastian Huber1-32/+32
Resolution is the right term for the documented property.
2021-11-23score: Properly continue the thread during restartSebastian Huber2-2/+7
The _Thread_queue_Extract() does not deal with potential priority updates and the SMP locking protocol handling. Use _Thread_queue_Continue(). For the POSIX signals processing this is currently probably unnecessary, however, the use case is similar to the restart so use the same appoach. Close #4546.
2021-11-23score: Move _Thread_queue_Extract()Sebastian Huber1-1/+6
Move _Thread_queue_Extract() since this function is not used by the core services (threads, semaphores, mutexes, message queues). Update #4546.
2021-11-23score: Simplify thread wait state handlingSebastian Huber3-15/+9
Remove the THREAD_WAIT_STATE_READY_AGAIN and simply use the initial value to indicate that a thread does not wait on something. Rename THREAD_WAIT_FLAGS_INITIAL to THREAD_WAIT_STATE_READY. This change is necessary so that _Thread_Continue() can be called for threads which never waited on something (for example dormant threads). Update #4546.
2021-11-23score: Add _Thread_MP_Extract_proxy()Sebastian Huber4-19/+41
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.