summaryrefslogtreecommitdiffstats
path: root/cpukit (follow)
Commit message (Collapse)AuthorAgeFilesLines
* doxygen: Fix constraintsSebastian Huber6 days1-2/+3
| | | | | | | Somehow the constraints for CONFIGURE_TICKS_PER_TIMESLICE and CONFIGURE_EXTRA_MPCI_RECEIVE_SERVER_STACK got mixed up. Update #4986.
* score: Improve C/C++ standard compatibilitySebastian Huber14 days4-380/+440
| | | | | | The processor mask implementation uses flsl() from <strings.h> which is only BSD visible. Move the implementation to a separate header file to hide it from the API level. This fixes build errors with GCC 14.
* rtems: Avoid -Wundef warnings in API headerSebastian Huber2024-03-231-6/+6
|
* Mark parameters as intentionally unusedSebastian Huber2024-03-227-0/+10
| | | | | | | | The parameters are unused due to API constraints. The functions are used through function pointers. Alternative implementations may use the parameters. Update #4862.
* Do not define CONFIGURE_TICKS_PER_TIMESLICE to 0Sebastian Huber2024-03-202-3/+2
| | | | | | | Unconditionally make a CONFIGURE_TICKS_PER_TIMESLICE value less than or equal to zero an error. Update #4986.
* score: Include missing header fileSebastian Huber2024-03-201-0/+2
| | | | | | This fixes: heap.c:268:3: warning: implicit declaration of function 'memset'
* arm: Move _CPU_ISR_install_vector()Sebastian Huber2024-03-202-27/+76
| | | | The use of this function is optional. Newer BSPs do not use it.
* cpukit: Gate ticks per timeslice configKinsey Moore2024-03-181-1/+3
| | | | | Gate CONFIGURE_TICKS_PER_TIMESLICE appropriately behind CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER.
* cpukit/jffs2: Properly commit JFFS2 dataKinsey Moore2024-03-141-0/+4
| | | | | | | | | When unmounting a JFFS2 filesystem, any outstanding write buffers must be flushed to disk. In some circumstances, these write buffers are instantiated by a garbage collection pass and as such no inode number is associated with it. Due to the way that JFFS2 processes these garbage collection passes, a write buffer without any associated inodes will not be flushed unless it is forced with jffs2_flush_wbuf_pad().
* Ensure ticks per timeslice is greater than zeroZack leung2024-03-142-2/+5
|
* cpukit/libtest: Remove unused variableKinsey Moore2024-03-011-1/+0
| | | | This unused variable causes a warning. It is never set or used.
* powerpc: Use RTEMS_XCONCAT()Sebastian Huber2024-02-271-6/+4
| | | | Prefer macros with a proper namespace.
* cpukit/jffs2: Handle used empty file systemKinsey Moore2024-02-262-0/+27
| | | | | | | | | | | | | | | | | On JFFS2 file systems on NOR flash or dataflash that does not have spare area for metadata and thus does not invoke delayed writes, it is possible to put the file system into a state where all blocks have been written to and all files have been deleted from the filesystem. There is a bug in the JFFS2 file system scan routine that detects this situation as a corrupted file system since the scan routine relies on "used" space to discriminate a valid file system when there are blocks that need to be erased. The correct fix would require a partial rewrite of the scan routine, so instead this patch tracks the space marked as obsolete along with space at the end of each block that is otherwise too small to contain a JFFS2 node so that it can me compared with the dirty space. Corrupted data (or otherwise non-JFFS2 blocks) will still cause this check to fail as corrupted data isn't recognized as obsoleted (deleted) nodes.
* libtest: Improve gcov info dumpSebastian Huber2024-02-222-4/+6
| | | | | | | | | Make sure there is no spurious empty line between the gcov info and the *** END OF GCOV INFO BASE64 *** line. This helps to recalculate the hash correctly at the consumer side.
* doxygen: Fix link formatSebastian Huber2024-02-161-1/+1
|
* crc: Add a CRC-24Q implementationSebastian Huber2024-02-162-0/+254
|
* base64: Add decoderMatthew Joyce2024-02-162-0/+228
|
* base64: Make base64 encoding tables publicSebastian Huber2024-02-162-7/+27
| | | | This makes them reusable. Change the character type to uint8_t.
* base64: Move base64 encoding supportSebastian Huber2024-02-168-99/+167
|
* i386: Restore SMP functionalityKinsey Moore2024-02-142-0/+7
| | | | | | | When the switch to waf occurred, the SMP support in i386 was left out causing it to accumulate a minor amount of cruft. This enables SMP for the i386 BSPs that support it and updates them for the API drift that has occurred since the change.
* cpukit/libblock: Ignore sync status prior to purgeKinsey Moore2024-01-312-2/+2
|
* cpukit/libblock: Ignore error notify return valueKinsey Moore2024-01-311-1/+1
| | | | This is already in the error path.
* cpukit/libblock: Ignore return value on error pathKinsey Moore2024-01-291-1/+1
|
* cpukit/cache: Report coherent add area failuresKinsey Moore2024-01-262-13/+24
| | | | | | This alters the API for rtems_cache_coherent_add_area to allow reporting of failures that can occur during the process of adding a new area to the coherent cache heap.
* cpukit/dosfs: Simplify expressions where possibleKinsey Moore2024-01-221-3/+3
|
* cpukit/libmisc: Cast getpid() before shiftingKinsey Moore2024-01-221-0/+5
| | | | | Cast getpid() before shifting to avoid truncation of upper bits before the 64bit XOR occurs.
* cpukit/libmisc/uuid: Check for invalid FDKinsey Moore2024-01-221-0/+6
|
* cpukit/dosfs: Don't leak a FAT FDKinsey Moore2024-01-221-7/+7
| | | | | | The tmp_fat_fd variable is unconditionally opened in the branch where it is used within the loop and so must be closed or else risk a resource leak.
* cpukit/score: Avoid overflow in multiplicationKinsey Moore2024-01-171-1/+1
| | | | | Change extend_count to uint32_t from uint16_t to avoid a possible premature integer overflow when it is later used for multiplication.
* cpukit/dosfs: Remove unused internal function argKinsey Moore2024-01-161-2/+0
|
* cpukit: Remove or use unused variable assignmentsKinsey Moore2024-01-166-5/+9
|
* flashdev.c: return error if both buffers are NULLBernd Moessner2024-01-161-1/+1
| | | | Updates #4981
* flashdev: Add missing default caseBernd Moessner2024-01-161-0/+2
| | | | Updates #4981
* flashdev.h: Add missing C++ include guardsBernd Moessner2024-01-161-0/+9
| | | | Updates #4981
* libio: Clean up usage of rtems_termios_device_modeKinsey Moore2024-01-101-1/+2
| | | | | | | | | | | | This cleans up outputUsesInterrupts usage with rtems_termios_device_mode enum values. The outputUsesInterrupts member was typed as an int, named as if it were a boolean value, and used as if it were a rtems_termios_device_mode enum. In this patch, values assigned to outputUsesInterrupts have been converted to the corresponding rtems_termios_device_mode enum value, conversions from deviceOutputUsesInterrupts have been made explicit, and uses of rtems_termios_device_mode enum values with deviceOutputUsesInterrupts have been converted to booleans.
* cpukit/dosfs: Jump to correct error handlerKinsey Moore2024-01-101-1/+1
| | | | | | | When encountering an error during filesystem creation, fat_fd must be cleaned up appropriately once the file is opened. There was an opportunity for a resource leak due to jumping to the incorrect error handling label.
* cpukit/dosfs: Cast away ignored returnKinsey Moore2024-01-051-1/+1
| | | | | An error is already being reported. Checking the return value of this function is not useful.
* cpukit/jffs2: Revert to non-granular lockingKinsey Moore2023-12-226-27/+61
| | | | | | | | | | Revert JFFS2 to non-granular locking. This makes the superblock available to the delayed work that it owns so that delayed work processing can ensure that shared resources are being exclusively accessed. This change only affects NAND systems. Moving forward with granular locking will require a significant investment of time in producing a test harness that doesn't require hardware such that this can get a reasonable amount of test coverage.
* libtest: Change verbosity to normalSebastian Huber2023-12-191-1/+1
| | | | | A verbose verbosity is not required for normal test suite runs. It may be used to debug test cases.
* doxygen: CONFIGURE_JFFS2_DELAYED_WRITE_TASK_PRIORITYSebastian Huber2023-12-191-1/+29
| | | | | | Document CONFIGURE_JFFS2_DELAYED_WRITE_TASK_PRIORITY. Update #4961.
* tm27: Add TM27_INTERRUPT_VECTOR_ALTERNATIVESebastian Huber2023-12-191-0/+7
| | | | | | | | | | | The TM27 support may define TM27_INTERRUPT_VECTOR_ALTERNATIVE to provide an alternative software generated interrupt request which is raised by _TM27_Raise_alternative() and cleared by _TM27_Clear_alternative(). Both functions shall return an RTEMS status code. This interrupt vector may be used to test the interrupt controller support on targets which do not provide generic software generated interrupts. Update #3716.
* tm27: Add optional TM27_INTERRUPT_VECTOR_DEFAULTSebastian Huber2023-12-191-1/+17
| | | | | | | Let the BSP define TM27_INTERRUPT_VECTOR_DEFAULT to more efficiently and reliably get the TM27 default interrupt vector. Update #3716.
* ftpd: Fix set but not used warningSebastian Huber2023-12-191-1/+0
|
* libtest: Fix test printer in rtems_test_run()Sebastian Huber2023-12-141-2/+11
| | | | | Route the test output through T_vprintf() only while the test suite runs. Otherwise, the begin/end of test message may not show up.
* libtest: Set test printer in rtems_test_run()Sebastian Huber2023-12-141-3/+11
| | | | Route the test output through T_vprintf().
* ftpd: Make socket timeout optionalSebastian Huber2023-12-141-9/+4
| | | | This feature is not supported by lwIP.
* rtems-fdt: Fix node property access on 64bitChris Johns2023-12-141-1/+1
|
* libmisc/shell: Work around tmux bug in row and columnChris Johns2023-12-131-25/+125
| | | | | | | | | - Extend the timeout to 150 msec for long remote sessions - Improve the performance of the detection Closes #4975 Closes #4977
* libtest: Add hash to gcov info dumpSebastian Huber2023-11-281-2/+27
| | | | This helps to validate that the data was transferred correctly.
* libtest: Add T_add_remark()Sebastian Huber2023-11-282-1/+40
| | | | | | | This can be used to report that nested test cases did run in a test case. Update #4971.