[PATCH 2/2] sptests/spstdc17: New test

2022-07-25 Thread Sebastian Huber
--- spec/build/testsuites/sptests/grp.yml | 2 + spec/build/testsuites/sptests/spstdc17.yml | 22 + testsuites/sptests/spstdc17/init.c | 57 ++ testsuites/sptests/spstdc17/spstdc17.doc | 12 + 4 files changed, 93 insertions(+) create mode 100644

[PATCH 1/2] imfs: Add

2022-07-25 Thread Sebastian Huber
--- cpukit/include/rtems/imfs.h | 38 +--- cpukit/include/rtems/imfsimpl.h | 92 +++ cpukit/libfs/src/imfs/imfs_add_node.c | 2 +- cpukit/libfs/src/imfs/imfs_chown.c| 2 +- cpukit/libfs/src/imfs/imfs_fchmod.c | 2

Re: confdefs.h bintime undefined compile error

2022-07-25 Thread Sebastian Huber
On 25/07/2022 01:04, Joel Sherrill wrote:> On Sun, Jul 24, 2022 at 11:20 AM Joel Sherrill > wrote: Hi Attached is a pretty simple RTEMS application that does not compile when -std=c99 is included on the compile line. arm-rtems6-gcc -B

Re: [libbsd 00/22] Remove FreeBSD file descriptors and avoid VFS

2022-07-25 Thread Sebastian Huber
On 11/07/2022 15:04, Sebastian Huber wrote: On 24/06/2022 08:33, Sebastian Huber wrote: This patch set removes the FreeBSD file descriptors.  The VFS is no longer used if only the USB, SD/MMC, network, PCI, and NVMe support is used by the application.  This change significantly reduce the

Re: [PATCH 2/2] sptests/spstdc17: New test

2022-07-25 Thread Joel Sherrill
This is OK but from what I see in applications, C99 is the version actually in use. The avionics community I work with hasn't even adopted C11. Even C++11/14 are just now getting some traction. --joel On Mon, Jul 25, 2022 at 3:03 AM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote:

GSoC 2022 - Midterm Deliverables - Duc Doan

2022-07-25 Thread Duc Doan
Dear mentors and RTEMS community, This email is to announce the deliverables I have for phase 1 of GSoC 2022. Please find my midterm blog post at: https://medium.com/@dtbpkmte/gsoc-2022-rtems-midterm-report-cdc994459362 (this includes the links to my repositories and code documentations). My

[PATCH v2 5/5] cpukit/libdl/rtl-sym.c: Fix increment of variable

2022-07-25 Thread Ryan Long
In rtems_rtl_symbol_global_add() the loop that gets to the end of the symbol table used "unsigned long" to increment the index for the table. For most architectures this resulted in 4, but with AArch64, it results in 8. This resulted in the symbols being read in wrong. Changing this to void* along

[PATCH v2 2/5] libdl/rtl-elf.h: Fix aarch64 define

2022-07-25 Thread Ryan Long
The aarch64 define was incorrect. This was causing the libdl tests to not work correctly. Updates #4682 --- cpukit/libdl/rtl-elf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpukit/libdl/rtl-elf.h b/cpukit/libdl/rtl-elf.h index c7c17c525a..0476c1ecd7 100644 ---

[PATCH v2 1/5] sys/exec_elf.h: Bring in newer file

2022-07-25 Thread Ryan Long
Updated this file with the newer version in NetBSD. Updates #4682 --- cpukit/include/sys/exec_elf.h | 840 -- 1 file changed, 608 insertions(+), 232 deletions(-) diff --git a/cpukit/include/sys/exec_elf.h b/cpukit/include/sys/exec_elf.h index

[PATCH v2 0/5] Add AArch64 support to libdl

2022-07-25 Thread Ryan Long
Hi, In this version of the patchset I converted the tabs to spaces in rtl-mdreloc-aarch64.c. I didn't address some of the other issues in rtl-mdreloc-aarch64.c due to the code being copied from rtl-mdreloc-arm.c. I can pull out the shared code from the two files in a follow up patch. Thanks,

[PATCH v2 4/5] libtests/dl*: Bump up the size of CONFIGURE_INIT_TASK_STACK_SIZE

2022-07-25 Thread Ryan Long
Updates #4682 --- testsuites/libtests/dl01/init.c | 2 +- testsuites/libtests/dl02/init.c | 2 +- testsuites/libtests/dl03/init.c | 2 +- testsuites/libtests/dl04/init.c | 2 +- testsuites/libtests/dl05/init.c | 2 +- testsuites/libtests/dl06/initimpl.h | 2 +-

[PATCH v2 3/5] cpukit/libdl: Add support for AArch64

2022-07-25 Thread Ryan Long
rtl-mdreloc-aarch64.c and elf_machdep.h came from NetBSD. Updates #4682 --- cpukit/libdl/rtl-mdreloc-aarch64.c| 599 ++ .../cpu/aarch64/include/machine/elf_machdep.h | 256 spec/build/cpukit/objdl.yml | 2 +

Re: [PATCH 2/2] sptests/spstdc17: New test

2022-07-25 Thread Sebastian Huber
On 25/07/2022 16:00, Joel Sherrill wrote: This is OK but from what I see in applications, C99 is the version actually in use. C17 is the default version of GCC 10 and 12. Threads are undefined in C99. Why would someone use such an old standard with RTEMS? Anyway, if you think it is important

[PATCH v2] aarch64/versal: Support DDRMC0 region 0 and 1

2022-07-25 Thread chrisj
From: Chris Johns - Support DDRMC0 region 0 up to 2G in size - Support DDRMC0 region 1 with DDR memory greater than 2G up to the DDRMC0 max amount - Extend the heap with region 1's memory Closes #4684 --- bsps/aarch64/xilinx-versal/include/bsp.h | 9

[PATCH v2] Support DDRMC0 region 0 and 1

2022-07-25 Thread chrisj
Hi, The Versal's DDRMC0 supports two separate regions. Region 0 is from 0 up to 2G where the Versal's hard IP regions start. DDR memory above the 2G mark is moved to region 1 and its base address is in the A64 address space. The patch will place all memory up to 2G in region 0 and if more is

Re: [PATCH 1/2] basp/aarch64: Make the unexpected sections origin address 64bit

2022-07-25 Thread Chris Johns
On 25/7/2022 2:00 pm, Kinsey Moore wrote: > On 7/24/2022 17:04, Chris Johns wrote: >> On 22/7/2022 11:14 pm, Kinsey Moore wrote: >>> Has this patch been tested with ILP32? I suspect that this line might need >>> to >>> get yanked out to a shared lp64 linkcmds.base and a shared ilp32 >>>

Re: [PATCH v2 3/5] cpukit/libdl: Add support for AArch64

2022-07-25 Thread Chris Johns
On 26/7/2022 12:06 am, Ryan Long wrote: > rtl-mdreloc-aarch64.c and elf_machdep.h came from NetBSD. > > Updates #4682 > --- > cpukit/libdl/rtl-mdreloc-aarch64.c| 599 ++ > .../cpu/aarch64/include/machine/elf_machdep.h | 256 > spec/build/cpukit/objdl.yml

Re: [PATCH v2 0/5] Add AArch64 support to libdl

2022-07-25 Thread Chris Johns
On 26/7/2022 12:06 am, Ryan Long wrote: > In this version of the patchset I converted the tabs to spaces in > rtl-mdreloc-aarch64.c. I think setting the loader to NULL is a bug. > I didn't address some of the other issues in rtl-mdreloc-aarch64.c due to the > code being copied from