summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* libtest: Fix warnings without a pragmaSebastian Huber2022-08-311-15/+8
| | | | | | | It seems that recent GCC versions expect that functions with a "const type *" parameter will read from the referenced location. Update #4662.
* config: Include <rtems/posix/timer.h> on demandSebastian Huber2022-08-311-2/+3
| | | | Updates #4691.
* score: Do not expose <limits.h> to <rtems.h>Sebastian Huber2022-08-301-3/+1
| | | | | | | | The <rtems.h> header file should not unnecessarily include standard C header files. The <string.h> and <limits.h> header includes were removed in 2017. Update #4662.
* score: Fix formatSebastian Huber2022-08-291-1/+1
| | | | Update #4706.
* score: Fix formatSebastian Huber2022-08-292-3/+3
| | | | Update #4706.
* Revert "linkersets.h: Fix gcc 12 warning"Sebastian Huber2022-08-291-1/+1
| | | | | | This reverts commit f930206724e65f188fe3b095826ceb1b11000f65. The linker set begin must be a symbol and not a zero-initialized item.
* cpukit/include: Fix including in C++Chris Johns2022-08-226-13/+24
| | | | UPdates #4706
* cpukit/include: Fixes for C++Chris Johns2022-08-223-5/+5
| | | | Updates #4706
* test.h: Add pragma for gcc 12 warningRyan Long2022-08-191-0/+7
| | | | Updates #4662
* schedulerpriority.h: Fix gcc 12 warningRyan Long2022-08-191-1/+1
| | | | | | Changed the size of the array to 1 to get rid of the warning. Updates #4662
* percpu.h: Add pragma for gcc 12 warningRyan Long2022-08-191-0/+8
| | | | Updates #4662
* interr.h: Fix gcc 12 warningRyan Long2022-08-191-1/+3
| | | | | | | The warning that this fixes states that "ISO C restricts enumerator values to range of 'int'." Updates #4662
* linkersets.h: Fix gcc 12 warningRyan Long2022-08-191-1/+1
| | | | | | | Changing the offset from 0 to 1 got rid of a warning stating that offset 0 is out of bounds. Updates #4662
* threads.h: Add pragmas to get rid of gcc 12 errorsRyan Long2022-08-191-0/+15
| | | | Updates #4662
* cpukit/include/rtems/test-info.h: Change @returns to @returnJoel Sherrill2022-08-101-3/+3
|
* Add support for CONFIGURE_POSIX_TIMERS_FACE_BEHAVIORJoel Sherrill2022-08-103-0/+100
| | | | | | | | | This adds the configure option CONFIGURE_POSIX_TIMERS_FACE_BEHAVIOR which allows the application to choose whether to have the POSIX timer_create() function follow the behavior defined by POSIX or the FACE Technical Standard. Updates #4691.
* rtems/malloc.h: Add API level Doxygen groupSebastian Huber2022-08-101-19/+41
| | | | | The interfaces in the MallocSupport group belong to the implementation. They are used by confdefs.h for example.
* libtest: Add T_report_hash_sha256_update()Sebastian Huber2022-08-101-0/+2
| | | | Update #3716.
* libmisc/shell: Add an 'rtems' command to report a running buildChris Johns2022-08-031-0/+6
| | | | - Report version, cpu, bsp, tools and options.
* score: Allow linker garbage collectionSebastian Huber2022-07-282-3/+3
| | | | | | | Place the object control blocks in dedicated sections to allow a linker garbage collection. Update #4678.
* score: Use PTHREAD_CANCELED for _Thread_Cancel()Sebastian Huber2022-07-281-4/+1
| | | | | | | | | | The rtems_task_delete() directive is basically just a combined pthread_cancel() and pthread_join(). In addition, it removes the PTHREAD_DETACHED state. The exit value returned by pthread_join() of threads cancelled by rtems_task_delete() should reflect this by getting a PTHREAD_CANCELED value instead of NULL which could be a normal exit value. Close #4680.
* score: Use priority inheritance for thread joinSebastian Huber2022-07-282-31/+78
| | | | | | | | | | | | | | | | | | | | | Threads may join the thread termination of another thread using the pthread_join() or rtems_task_delete() directives. The thread cancel operation used a special case priority boosting mechanism implemented by _Thread_Raise_real_priority(). The problem was that this approach * is not transitive, * does not account for priority adjustments of the calling task while waiting for the join, * does not support clustered scheduling, and * does not detect deadlocks. All these problems are fixed by using a priority inheritance thread queue for the join operation. Close #4679.
* score: Fix objects local table initializationSebastian Huber2022-07-272-4/+2
| | | | | | | | The objects local table must be statically zero-initialized so that _Objects_Get() and _Objects_Get_no_protection() return NULL if no object is associated with the identifier. Update #4678.
* score: Remove PRIORITY_PSEUDO_ISR thread prioritySebastian Huber2022-07-267-123/+243
| | | | | | | | | | | | | | | The uniprocessor schedulers had some special case logic for the PRIORITY_PSEUDO_ISR priority. Tasks with a priority of PRIORITY_PSEUDO_ISR were allowed to preempt a not preemptible task. If other higher priority task are made ready while a PRIORITY_PSEUDO_ISR task preempts a not preemptible task, then the other tasks run before the not preemptible task. This made the RTEMS_NO_PREEMPT mode ineffective. Remove the PRIORITY_PSEUDO_ISR special case logic. This simplifies the uniprocessor schedulers. Move the uniprocessor-specific scheduler support to the new header file <rtems/score/scheduleruniimpl.h>. Close #2365.
* imfs: Add <rtems/imfsimpl.h>Sebastian Huber2022-07-252-37/+93
|
* libtest: Add missing initializerSebastian Huber2022-07-251-1/+1
|
* Support _REENT_THREAD_LOCAL Newlib configurationMatt Joyce2022-07-214-14/+27
| | | | | | | | | In case the Newlib _REENT_THREAD_LOCAL configuration option is enabled, the struct _reent is not defined (there is only a forward declaration in <sys/reent.h>). Instead, the usual members of struct _reent are available as dedicatd thread-local storage objects. Update #4560.
* score: Fix unlimited objects supportSebastian Huber2022-07-181-4/+25
| | | | | | | | Commit 21275b58a5a69c3c838082ffc8a7a3641f32ea9a ("score: Static Objects_Information initialization") introduced an off-by-one error in the maintenance of inactive objects. Close #4677.
* score: Extend memory dirty/zero actionsSebastian Huber2022-07-151-1/+13
| | | | | | Dirty or zero also the part of the .noinit section used by RTEMS. Close #4678.
* score: Place object controls into .noinit sectionsSebastian Huber2022-07-152-5/+11
| | | | | | | | | | | | Place the statically allocated object control blocks, local tables, and thread queue heads into the dedicated .noinit intput sections. The output section is not zero initialized. Placing these elements into the .noinit section reduces the system initialization time by decreasing the .bss section size. It may improve the cache efficiency since the mostly read local tables are placed in a contiguous memory area. Update #4678.
* score: Conditional _Thread_Priority_replace()Sebastian Huber2022-07-071-0/+2
| | | | This function is only used in SMP configurations.
* gcov: Add functions to dump the gcov informationSebastian Huber2022-07-042-0/+93
| | | | Update #4670.
* score: Account for <sys/bitset.h> API changesSebastian Huber2022-06-231-17/+73
| | | | Update #4667.
* score: Remove unused _Processor_mask_Nand()Sebastian Huber2022-06-231-16/+0
| | | | Update #4667.
* score: Make SMP only code explicitSebastian Huber2022-06-231-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.
* TFTPFS: Implement block and window size optionsFrank Kühndel2022-06-211-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.
* timecounter.h: Add _Timecounter_Discipline()Gabriel Moyano2022-05-231-0/+17
| | | | Update #2349.
* score: Rename tc_getfrequency()Gabriel Moyano2022-05-231-0/+8
| | | | | | Rename tc_getfrequency() to _Timecounter_Get_frequency(). Update #2349.
* score: Add SMP priority affinity scheduler yieldTian Ye2022-05-121-1/+7
|
* ftpd.h: Add file header and licenseRyan Long2022-05-041-1/+30
| | | | | This file had no header, copyright, or license. Based on git history, added appropriate copyright and license.
* cpukit/include/rtems: Add file headers and licensesRyan Long2022-05-042-0/+53
| | | | | These files had no header, copyright, or licenses. Based on git history, added appropriate copyright and license.
* cpukit/include: Adding file headers and licensesRyan Long2022-05-044-2/+113
| | | | | These files had no file header, copyright, or license. Based on git history, added appropriate copyright and license.
* heap: Fix heap statistics with protection enabledSebastian Huber2022-04-281-9/+1
| | | | Close #4644.
* shell: Add rtems_shell_run_main_loop()Sebastian Huber2022-04-061-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.
* Update email address of Fernando Ruiz Casas to <fruizcasas@gmail.com>Joel Sherrill2022-04-053-14/+20
| | | | This was requested to be executed prior to relicensing to BSD-2.
* cpukit/include/rtems/timespec.h: Change license to BSD-2Joel Sherrill2022-04-011-3/+22
| | | | | | Permission received from Krzysztof Miesowicz. Updates #3053.
* cpukit/include/rtems/cbs.h: Change license to BSD-2Joel Sherrill2022-04-011-3/+22
| | | | | | Permission received from Petr Benes Updates #3053.
* rtems: Clarify scheduler of created taskSebastian Huber2022-03-291-3/+3
|
* cpukit/include/rtems/confdefs/libpci.h: Manual file header clean upJoel Sherrill2022-03-251-8/+8
|
* cpukit/include/sys: Change license to BSD-2.Joel Sherrill2022-03-2529-91/+642
| | | | Updates #3053.