Convert test executables to bootloader images?

2024-01-16 Thread Sebastian Huber
Hello, the RTEMS 6 build system only produces test executables in ELF format. For example, if you want to run the tests using U-Boot, then you have to convert the ELF file with the U-Boot mkimage tool to an U-Boot image using BSP-specific command line arguments. For other bootloaders you have

Re: [PATCH] cpukit/score: Avoid overflow in multiplication

2024-01-16 Thread Sebastian Huber
On 16.01.24 21:02, Kinsey Moore wrote: The two operands are 16 bit and the result is being saved into a larger type. Reduce the possibility of an overflow during multiplication by using the larger type as an operand. --- cpukit/score/src/objectextendinformation.c | 3 ++- 1 file changed, 2 ins

[PATCH] cpukit/dosfs: Don't leak a FAT FD

2024-01-16 Thread Kinsey Moore
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/libfs/src/dosfs/msdos_dir.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/cpukit/libfs/src/dosfs/msdo

[PATCH v2] cpukit/libmisc/uuid: Check for invalid FD

2024-01-16 Thread Kinsey Moore
--- cpukit/libmisc/uuid/gen_uuid.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/cpukit/libmisc/uuid/gen_uuid.c b/cpukit/libmisc/uuid/gen_uuid.c index 71b8a569bb..9b8dbeaa2e 100644 --- a/cpukit/libmisc/uuid/gen_uuid.c +++ b/cpukit/libmisc/uuid/gen_uuid.c @@ -343,11 +343,17 @@ static in

[PATCH] cpukit/libmisc: Cast getpid() before shifting

2024-01-16 Thread Kinsey Moore
Cast getpid() before shifting to avoid truncation of upper bits before the 64bit XOR occurs. --- cpukit/libmisc/uuid/gen_uuid.c | 5 + 1 file changed, 5 insertions(+) diff --git a/cpukit/libmisc/uuid/gen_uuid.c b/cpukit/libmisc/uuid/gen_uuid.c index 9b8dbeaa2e..5601c887c9 100644 --- a/cpukit/

[PATCH] cpukit/score: Avoid overflow in multiplication

2024-01-16 Thread Kinsey Moore
The two operands are 16 bit and the result is being saved into a larger type. Reduce the possibility of an overflow during multiplication by using the larger type as an operand. --- cpukit/score/src/objectextendinformation.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cpu

[PATCH] cpukit/dosfs: Simplify expressions where possible

2024-01-16 Thread Kinsey Moore
--- cpukit/libfs/src/dosfs/fat_fat_operations.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cpukit/libfs/src/dosfs/fat_fat_operations.c b/cpukit/libfs/src/dosfs/fat_fat_operations.c index 1d94beb26a..fe6bbf03ce 100644 --- a/cpukit/libfs/src/dosfs/fat_fat_operations.c

Re: [PATCH] LEON3: Update power-down function

2024-01-16 Thread Sebastian Huber
Hello Martin, the patch removes the UT699 reference. Is this workaround also valid for the UT699? On 12.01.24 20:02, Martin Åberg wrote: This updates the implementation of the LEON3 processor power-down function. It now contains the workaround for the GR712RC power-down errata described in G

Re: [PATCH 0/5] Update GRLIB L2C driver for technical note TN-0021

2024-01-16 Thread Sebastian Huber
Hello Martin, we have also the Cache Manager support in bsps/sparc/leon3/start/cache.c. At least the lock should be shared between these two implementations to ensure that there is no concurrent access. What is the use case for this driver in grlib? Is it used by the Cache Manager API? On

[PATCH] bsps/clock: Fix fast idle mode

2024-01-16 Thread Sebastian Huber
Switch back to the idle thread if no watchdogs are active. In some tests, the idle thread may do some non-blocking work. --- bsps/shared/dev/clock/clockimpl.h | 16 1 file changed, 16 insertions(+) diff --git a/bsps/shared/dev/clock/clockimpl.h b/bsps/shared/dev/clock/clockimpl

[PATCH 5/5] grlib/l2c: Prevent concurrent register access

2024-01-16 Thread Martin Åberg
Accesses to the L2C registers performed by the L2C driver are now serialized with spin locks. This avoids concurrent access to the L2C registers by multiple processors. Proposed by GRLIB-TN-0021. Update #4925. --- bsps/shared/grlib/l2c/l2c.c | 35 --- 1 file change

[PATCH 3/5] grlib/l2c: Access registers with helper functions

2024-01-16 Thread Martin Åberg
--- bsps/shared/grlib/l2c/l2c.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bsps/shared/grlib/l2c/l2c.c b/bsps/shared/grlib/l2c/l2c.c index ef2a524d33..d3832cdd51 100644 --- a/bsps/shared/grlib/l2c/l2c.c +++ b/bsps/shared/grlib/l2c/l2c.c @@ -2107,8 +2107,8 @@ int l2cach

[PATCH 4/5] grlib/l2c: Write to flush registers using atomic instructions

2024-01-16 Thread Martin Åberg
All writes to the L2C flush registers performed by the driver are now done using atomic write instructions. Proposed by GRLIB-TN-0021. Update #4925. --- bsps/shared/grlib/l2c/l2c.c | 64 + 1 file changed, 50 insertions(+), 14 deletions(-) diff --git a/bsps/sha

[PATCH 2/5] grlib/l2c: Use printk for debug print

2024-01-16 Thread Martin Åberg
--- bsps/shared/grlib/l2c/l2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsps/shared/grlib/l2c/l2c.c b/bsps/shared/grlib/l2c/l2c.c index 4be29c56a4..ef2a524d33 100644 --- a/bsps/shared/grlib/l2c/l2c.c +++ b/bsps/shared/grlib/l2c/l2c.c @@ -50,7 +50,7 @@ /*#define DEBUG 1

[PATCH 0/5] Update GRLIB L2C driver for technical note TN-0021

2024-01-16 Thread Martin Åberg
Implement workarounds for GRLIB-TN-0021 ("Level-2 Cache Issues H1 2023") in the GRLIB L2C driver manager device driver. Martin Åberg (5): grlib/l2c: Fix whitespace grlib/l2c: Use printk for debug print grlib/l2c: Access registers with helper functions grlib/l2c: Write to flush registers u

[PATCH 1/5] grlib/l2c: Fix whitespace

2024-01-16 Thread Martin Åberg
No functional change --- bsps/shared/grlib/l2c/l2c.c | 168 ++-- 1 file changed, 84 insertions(+), 84 deletions(-) diff --git a/bsps/shared/grlib/l2c/l2c.c b/bsps/shared/grlib/l2c/l2c.c index 17d96874ae..4be29c56a4 100644 --- a/bsps/shared/grlib/l2c/l2c.c +++ b/bsp