summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-10-12cpukit/libmisc/monitor: Fix an illegal string copyFrank Kühndel
This is actually an illegal use of strcpy() because one is not allowed to use this function with overlapping source and destination buffers; whereas memmove() is explicitly designed to handle such cases. The compiler warning was: ../../../cpukit/libmisc/monitor/mon-editor.c:342:15: warning: 'strcpy' accessing 1 byte at offsets [0, 75] and [0, 75] overlaps 1 byte at offset [0, 74] [-Wrestrict]
2020-10-12psxndbm01 - Fixing string truncation warningFrank Kühndel
This fixes the following compiler warning: testsuites/psxtests/psxndbm01/init.c:221:3: warning: 'strncpy' output truncated before terminating nul copying 5 bytes from a string of the same length 221 | strncpy( test_strings, "Hello", 5 ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In addition, the comments from Sebastian Huber on an old version of such a patch have been taken into account: 1) The use of `sizeof()` in `key.dsize = sizeof( test_strings );` is wrong. 2) There is no need to allocate the string. One can simply use a string constant. (See https://lists.rtems.org/pipermail/devel/2020-August/061418.html)
2020-10-12libblock: Fix sparse diskSebastian Huber
The qsort() in sparse_disk_get_new_block() may move the appended key which invalidates the pointer. Close #4142.
2020-10-11rtems: Generate <rtems/io.h>Sebastian Huber
The manager documentation is a consolidation of the comments in Doxygen markup and the documentation sources in Sphinx markup. The documentation was transfered to interface specification items. This header file was generated from the items by a script. Change license to BSD-2-Clause according to file histories and documentation re-licensing agreement. Update #3899. Update #3993.
2020-10-11libblock: Add commentSebastian Huber
2020-10-10mghttpd/mongoose: Fix string truncation warningFrank Kühndel
This fixes the compiler warning below. ../../../cpukit/mghttpd/mongoose.c:1919:45: warning: '.gz' directive output may be truncated writing 3 bytes into a region of size between 1 and 255 [-Wformat-truncation=]
2020-10-10libblock: Fix string truncation warningFrank Kühndel
This patch does not only fix the compiler warning below. memcpy() is the better function at this place as the terminating NUL character is never copied here. Instead more characters will be appended to the 'logical_disk_name' later on. ../../../cpukit/libblock/src/bdpart-register.c:41:5: warning: 'strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
2020-10-10disp_hcms29xx: Fix string truncation warningFrank Kühndel
The strlcpy() function ensures there is always a NUL character at the end of the string. Hence it is safer as strncpy() and it avoids the compiler warning
2020-10-10testsuits/dl10 : Prototype missingFrank Kühndel
Fix a compiler warning about a missing prototype. If you wonder why the function name is not `static`: The code in the file only serves a test where the dynamic object loader (aka dlopen()) should handle duplicated symbols in an archive. testsuites/libtests/dl10/dl10-o6.c:14:5: warning: no previous prototype for 'rtems_main_o5' [-Wmissing-prototypes] 14 | int rtems_main_o5 (void) | ^~~~~~~~~~~~~
2020-10-10capture: Fix unaligned pointer value warningFrank Kühndel
rtems_name is a four byte integer. Giving an rtems_name as value instead of a pointer to ctrace_task_name_add() fixes not only the compiler warning but it is also a bit more safe For those who have asked for the warning: ../../../cpukit/libmisc/capture/capture_support.c:352:49: warning: taking address of packed member of 'struct rtems_capture_task_record' may result in an unaligned pointer value [-Waddress-of-packed-member] 352 | ctrace_task_name_add (rec_out->task_id, &task_rec.name); | ^~~~~~~~~~~~~~
2020-10-10build: Add test excludes for RTEMS_PROFILINGSebastian Huber
2020-10-10build: Add test excludes for rcxx01Sebastian Huber
2020-10-10rtems: Improve RTEMS_NO_RETURN attributeSebastian Huber
Provide RTEMS_NO_RETURN also in case RTEMS_DEBUG is defined to prevent errors like this: error: no return statement in function returning non-void [-Werror=return-type] Use C11 and C++11 standard means to declare a no-return function. Close #4122.
2020-10-10grlib: Add and use irqmp_has_timestamp()Sebastian Huber
Replace leon3_irqmp_has_timestamp() with irqmp_has_timestamp() and move it to grlib.h. Close #4128.
2020-10-10build: Fix legacy Makefile supportSebastian Huber
Close #4140.
2020-10-09testsuite/rcxx01: Add examples for use in the User manualChris Johns
2020-10-09librtemscxx: Fix white space to match the coding standardChris Johns
2020-10-09librtemscxx: Add join() and detach() to the threadChris Johns
- Do not start threads detached
2020-10-08bsps/include/bsp/fatal.h: Add GRLIB specific fatal errorJoel Sherrill
updates #4028.
2020-10-08librtemscxx: Fix installSebastian Huber
2020-10-08validation: Improve file header commentSebastian Huber
2020-10-08doxygen: Add "Generated from ..." commentsSebastian Huber
Improve file header comment. Update #3994.
2020-10-08rtems: Add "Generated from ..." commentsSebastian Huber
Improve file header comment. Update #3993.
2020-10-08build: Disable RTEMS_NETWORKING for some arch/bspSebastian Huber
The old network stack is not supported on 64-bit targets.
2020-10-08cpukit/librcxx: Add a C++ thread interface with attributesChris Johns
2020-10-07Misc: Correct spelling of occurredJoel Sherrill
2020-10-07rtems: Add RTEMS_PARTITION_ALIGNMENTSebastian Huber
Update #4105.
2020-10-07build: Fix BSP nameSebastian Huber
Update #3818.
2020-10-07build: Remove raspberrypi from RTEMS_SMPSebastian Huber
Close #4116.
2020-10-06build: Add test excludes for RTEMS_DEBUGSebastian Huber
2020-10-05bsps: Add Cortex-A53 ILP32 BSP variantKinsey Moore
This adds an AArch64 ILP32 BSP variant based on Qemu's Cortex-A53 emulation with interrupt support using GICv3 and clock support using the ARM GPT.
2020-10-05bsps: Add Cortex-A53 LP64 basic BSPKinsey Moore
This adds an AArch64 basic BSP based on Qemu's Cortex-A53 emulation with interrupt support using GICv3 and clock support using the ARM GPT.
2020-10-05score: Add AArch64 portKinsey Moore
This adds a CPU port for AArch64(ARMv8) with support for exceptions and interrupts.
2020-10-05spmsgq_err01: Use correct max values and fix 64bitKinsey Moore
Fix spmsgq_err01 on systems with 64-bit pointers and correct max value mismatches and inaccuracies that are more noticable on 64-bit systems.
2020-10-05bsps/shared: Add PSCI-based bspreset implementationKinsey Moore
This adds a bsp_reset implementation based on the ARM PSCI specification often present in ARMv8 systems.
2020-10-05bsps: Break out AArch32 GICv3 supportKinsey Moore
This breaks out AArch32-specific code so that the shared GICv3 code can be reused by other architectures.
2020-10-05bsps: Break out AArch32 portions of GPT driverKinsey Moore
This breaks AArch32-specific portions of the ARM GPT driver into their own file so that the generic code can be moved for reuse by other architectures.
2020-10-05spec: Add missing spintrcritical24 definitionKinsey Moore
2020-10-05Move ARM PL011 UART driverKinsey Moore
This UART driver is now needed for BSPs other than ARM.
2020-10-05build: Add test excludes for RTEMS_DEBUGSebastian Huber
Close #4121.
2020-10-05bsp/lpc176x: Fix memory mapSebastian Huber
Due to the static allocation of operating system resources the .bss section needs more space than the .work section. Close #4117.
2020-10-05build: Add testopts.h to configure scriptSebastian Huber
Close #4120.
2020-10-02build: Use exact match by default for BSP namesSebastian Huber
Update #3818.
2020-10-02build: Scope RTEMS_MULTIPROCESSING optionSebastian Huber
Enable it only for selected BSPs. Improve description.
2020-10-02build: Fix typoSebastian Huber
2020-10-01Decouple the C Program Heap initializationSebastian Huber
Before this patch RTEMS_Malloc_Initialize() had a fixed dependency on _Workspace_Area. Introduce _Workspace_Malloc_initializer to have this dependency only if CONFIGURE_UNIFIED_WORK_AREAS is defined by the application configuration.
2020-10-01rtems: Canonicalize name and id checksSebastian Huber
Check the name followed by the id check in all create directives. Compare pointers against NULL. Fix formatting.
2020-10-01tests: Add and use <rtems/testopts.h>Sebastian Huber
Add the build option RTEMS_TEST_VERBOSITY to control the verbosity of test suites using the RTEMS Test Framework.
2020-10-01build: Enable RTEMS_SMP only for selected BSPsSebastian Huber
2020-10-01build: Fix build dependencies of JFFS2 testsSebastian Huber
Close #4107.