[PATCH] hw/riscv: Fix test for microchi-icicle-kit

2025-03-14 Thread Sebastian Huber
out! ERROR:../hw/riscv/boot.c:164:riscv_load_firmware: \ assertion failed: (firmware_filename != NULL) Use an approach similar to riscv_find_and_load_firmware(). Reported-by: Daniel Henrique Barboza Signed-off-by: Sebastian Huber --- hw/riscv/microchip_pfsoc.c | 12 +++- 1 file

Re: Script to Update Hashes for RTEMS 7 Tools

2024-12-13 Thread Sebastian Huber
Hello Joel, I update it through a script, however, after an update usually something is broken and you have to write a bug report or a patch. I was busy with other things recently. -- embedded brains GmbH & Co. KG Herr Sebastian HUBER Dornierstr. 4 82178 Puchheim Germany e

Doxygen guidelines still relevant to the project?

2024-08-13 Thread Sebastian Huber
comments in line with these guidelines were replaced by incomplete comments not following the guidelines. From an RTEMS Project point of view, are these guidelines still relevant? -- embedded brains GmbH & Co. KG Herr Sebastian HUBER Dornierstr. 4 82178 Puchheim Germany email: sebastia

Re: Updating GitHub Mirrors?

2024-07-04 Thread Sebastian Huber
- Am 4. Jul 2024 um 20:18 schrieb o...@c-mauderer.de: > Hello Joel and Sebastian, > > Am 04.07.24 um 19:38 schrieb Sebastian Huber: >> - Am 4. Jul 2024 um 19:30 schrieb Joel Sherrill j...@rtems.org: >> >>> Thanks. What times? >> >> About 7 min

Re: Updating GitHub Mirrors?

2024-07-04 Thread Sebastian Huber
- Am 4. Jul 2024 um 19:30 schrieb Joel Sherrill j...@rtems.org: > Thanks. What times? About 7 minutes past 4, 12, and 20 CEST. -- embedded brains GmbH & Co. KG Herr Sebastian HUBER Dornierstr. 4 82178 Puchheim Germany email: sebastian.hu...@embedded-brains.de phone: +49-89-18 94 7

Re: Updating GitHub Mirrors?

2024-07-04 Thread Sebastian Huber
- Am 4. Jul 2024 um 18:12 schrieb Joel Sherrill j...@rtems.org: > On Thu, Jul 4, 2024, 1:06 AM Sebastian Huber < > sebastian.hu...@embedded-brains.de> wrote: > >> - Am 3. Jul 2024 um 19:29 schrieb Joel Sherrill j...@rtems.org: >> >> > Hi >> >

Re: Updating GitHub Mirrors?

2024-07-03 Thread Sebastian Huber
- Am 3. Jul 2024 um 19:29 schrieb Joel Sherrill j...@rtems.org: > Hi > > When/how do the mirrors of gcc, binutlls, newlib, etc get updated? They are updated once a day. -- embedded brains GmbH & Co. KG Herr Sebastian HUBER Dornierstr. 4 82178 Puchheim Germany email:

Re: removing unused third-party headers (objbsd)?

2024-06-30 Thread Sebastian Huber
On 29.06.24 02:30, Gedare Bloom wrote: On Fri, Jun 28, 2024 at 10:41 AM Gedare Bloom wrote: On Thu, Jun 27, 2024 at 11:39 PM Sebastian Huber wrote: On 28.06.24 00:42, Gedare Bloom wrote: I've been doing back through my third-party source code attribution. I've found that there

Re: removing unused third-party headers (objbsd)?

2024-06-27 Thread Sebastian Huber
f them? These files are included from Newlib header files and are used by the legacy network stack and libbsd. -- embedded brains GmbH & Co. KG Herr Sebastian HUBER Dornierstr. 4 82178 Puchheim Germany email: sebastian.hu...@embedded-brains.de phone: +49-89-18 94 741 - 16 fax: +4

Re: Ada

2024-06-24 Thread Sebastian Huber
Hello John, I have some issues on arm and Ada with current versions of GCC, see also: https://gcc.gnu.org/pipermail/gcc/2024-June/244197.html -- embedded brains GmbH & Co. KG Herr Sebastian HUBER Dornierstr. 4 82178 Puchheim Germany email: sebastian.hu...@embedded-brains.de phone: +49-89-1

Re: What to do with rtems_cache_disable_data()?

2024-06-21 Thread Sebastian Huber
On 14.06.24 11:47, Sebastian Huber wrote: Hello, an user noticed that for example on the Xilinx Zynq 7000 BSP, the rtems_cache_disable_data() doesn't work. I had a look at this and managed to disable the L1 and L2 caches, however, afterwards I got not that far. On the Cortex-A cor

Re: What to do with rtems_cache_disable_data()?

2024-06-20 Thread Sebastian Huber
On 18.06.24 17:32, Gedare Bloom wrote: On Mon, Jun 17, 2024 at 11:20 PM Chris Johns wrote: On 18/6/2024 12:02 am, Sebastian Huber wrote: On 17.06.24 03:35, Chris Johns wrote: On 14/6/2024 10:42 pm, Peter Dufault wrote: On Jun 14, 2024, at 5:47 AM, Sebastian Huber wrote: Hello, an

Re: What to do with rtems_cache_disable_data()?

2024-06-17 Thread Sebastian Huber
On 17.06.24 03:35, Chris Johns wrote: On 14/6/2024 10:42 pm, Peter Dufault wrote: On Jun 14, 2024, at 5:47 AM, Sebastian Huber wrote: Hello, an user noticed that for example on the Xilinx Zynq 7000 BSP, the rtems_cache_disable_data() doesn't work. I had a look at this and manag

What to do with rtems_cache_disable_data()?

2024-06-14 Thread Sebastian Huber
_data() and let it return RTEMS_UNSATISFIED for example. -- embedded brains GmbH & Co. KG Herr Sebastian HUBER Dornierstr. 4 82178 Puchheim Germany email: sebastian.hu...@embedded-brains.de phone: +49-89-18 94 741 - 16 fax: +49-89-18 94 741 - 08 Registergericht: Amtsgericht München Registernu

Re: RTEMS Doxygen Broken

2024-06-04 Thread Sebastian Huber
show up in the right spot in the group hierarchy. Not really a lot of people work on this task. -- embedded brains GmbH & Co. KG Herr Sebastian HUBER Dornierstr. 4 82178 Puchheim Germany email: sebastian.hu...@embedded-brains.de phone: +49-89-18 94 741 - 16 fax: +49-89-18 94 741 - 08 R

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

2024-05-17 Thread Sebastian Huber
Hello Martin, I suggest to remove the grlib/l2c cache support and make sure that everything is available through the RTEMS Cache Manager. On 16.01.24 16:48, Sebastian Huber wrote: Hello Martin, we have also the Cache Manager support in bsps/sparc/leon3/start/cache.c. At least the lock

Re: ZynqMP APU RAM Start

2024-05-14 Thread Sebastian Huber
On 14.05.24 17:11, Kinsey Moore wrote: On Tue, May 14, 2024 at 1:28 AM Chris Johns <mailto:chr...@rtems.org>> wrote: On 14/5/2024 4:04 pm, Sebastian Huber wrote: > Hello, > > the ZynqMP APU RAM start addresses are far away from 0x0: > > cat

ZynqMP APU RAM Start

2024-05-13 Thread Sebastian Huber
ould it be possible to add a NULL pointer protection page? -- embedded brains GmbH & Co. KG Herr Sebastian HUBER Dornierstr. 4 82178 Puchheim Germany email: sebastian.hu...@embedded-brains.de phone: +49-89-18 94 741 - 16 fax: +49-89-18 94 741 - 08 Registergericht: Amtsgericht München Regis

Re: Improvements to SMP under the arch64 architecture

2024-05-08 Thread Sebastian Huber
On 08.05.24 08:17, Sebastian Huber wrote: Hello, on the arm target, we use this: static inline struct Per_CPU_Control *_ARM_Get_current_per_CPU_control( void ) {   struct Per_CPU_Control *cpu_self;   /* Use PL1 only Thread ID Register (TPIDRPRW) */   __asm__ volatile (     "mrc p

Re: Improvements to SMP under the arch64 architecture

2024-05-07 Thread Sebastian Huber
BSP-specific startup code has to decode the MPIDR and set the thread ID register accordingly. -- embedded brains GmbH & Co. KG Herr Sebastian HUBER Dornierstr. 4 82178 Puchheim Germany email: sebastian.hu...@embedded-brains.de phone: +49-89-18 94 741 - 16 fax: +49-89-18 94 741 - 08 Regi

Re: [PATCH 1/2] hw/intc/arm_gic: Fix set pending of PPIs

2024-05-07 Thread Sebastian Huber
Sorry, this did go to the wrong mailing list. On 07.05.24 14:56, Sebastian Huber wrote: According to the GICv2 specification section 4.3.7, "Interrupt Set-Pending Registers, GICD_ISPENDRn": "In a multiprocessor implementation, GICD_ISPENDR0 is banked for each connected processor

[PATCH 1/2] hw/intc/arm_gic: Fix set pending of PPIs

2024-05-07 Thread Sebastian Huber
According to the GICv2 specification section 4.3.7, "Interrupt Set-Pending Registers, GICD_ISPENDRn": "In a multiprocessor implementation, GICD_ISPENDR0 is banked for each connected processor. This register holds the Set-pending bits for interrupts 0-31." Signed-off-by: Seba

[PATCH 2/2] hw/intc/arm_gic: Fix writes to GICD_ITARGETSRn

2024-05-07 Thread Sebastian Huber
rupt makes that interrupt pending on that CPU interface - removing a CPU interface from the target list of a pending interrupt removes the pending state of that interrupt on that CPU interface." Signed-off-by: Sebastian Huber --- hw/intc/arm_gic.c | 7 +++ 1 file changed, 7 inserti

GCC 14: m68k, sh, and sparc64

2024-04-28 Thread Sebastian Huber
t declaration of function 'sinl'; did you mean 'sinf'? [-Wimplicit-function-declaration] 43 | w = coshl(x) * cosl(y) + (sinhl(x) * sinl(y)) * I; | ^~~~ | sinf make[4

GCC 14: nios2

2024-04-28 Thread Sebastian Huber
Hello, in order to build the nios2 GCC 14, you have to add --enable-obsolete to the configure command line. With this option, it builds fine. I am not sure how this option can be added to the RSB just for this target. -- embedded brains GmbH & Co. KG Herr Sebastian HUBER Dornierstr. 4 8

[RSB 1/3] 6/7: Update Newlib

2024-04-27 Thread Sebastian Huber
Keep RTEMS up to date with the upstream development. --- rtems/config/tools/rtems-gcc-10-newlib-head.cfg | 4 ++-- rtems/config/tools/rtems-gcc-10.4-newlib-head.cfg | 4 ++-- rtems/config/tools/rtems-gcc-12-newlib-head.cfg | 4 ++-- rtems/config/tools/rtems-gcc-13-newlib-head.cfg | 4 ++-- r

[RSB 2/3] 6: Update GCC 12 and 13

2024-04-27 Thread Sebastian Huber
Keep RTEMS up to date with the upstream development. For GCC 13, this includes a new set of aarch64 multilibs to address Cortex-A53 workarounds and fixes for powerpc. --- rtems/config/tools/rtems-gcc-12-newlib-head.cfg | 4 ++-- rtems/config/tools/rtems-gcc-13-newlib-head.cfg | 4 ++-- 2 files ch

[RSB 3/3] 7: Update Binutils, GDB, and GCC

2024-04-27 Thread Sebastian Huber
Keep RTEMS up to date with the upstream development. This snapshot is close to the GCC 14 release. --- rtems/config/tools/rtems-binutils-head.cfg| 4 ++-- rtems/config/tools/rtems-gcc-head-newlib-head.cfg | 4 ++-- rtems/config/tools/rtems-gdb-head.cfg | 4 ++-- 3 files change

Re: Repo Transition to GitLab

2024-04-25 Thread Sebastian Huber
are checked in. How will the ticket updates work in GitLab? Are the ticket numbers the same? -- embedded brains GmbH & Co. KG Herr Sebastian HUBER Dornierstr. 4 82178 Puchheim Germany email: sebastian.hu...@embedded-brains.de phone: +49-89-18 94 741 - 16 fax: +49-89-18 94 741

[RFC v2] rtems: Add options to kernel output char handler

2024-04-25 Thread Sebastian Huber
Make the kernel I/O output character device processing configurable through an option set parameter. Add RTEMS_IO_NO_OUTPUT and RTEMS_IO_DRAIN options. The goal of this API change is to enable draining the kernel output device in the system termination process before a reset is issued. A use cas

Re: [PATCH v2] rtems: Add get/set interrupt priorities

2024-04-24 Thread Sebastian Huber
On 16.04.24 07:25, Sebastian Huber wrote: On 09.04.24 16:28, Sebastian Huber wrote: Add directives to get and set the priority of an interrupt vector. Implement the directives for the following BSP families: * arm/lpc24xx * arm/lpc32xx * powerpc/mpc55xxevb * powerpc/qoriq Implement the

Re: Cortex-M floating point (Was: RTEMS 6 branching)

2024-04-24 Thread Sebastian Huber
On 24.04.24 14:37, Cedric Berger wrote: Hello Sebastian, On 23.04.2024 19:56, Sebastian Huber wrote: 1. Are all the things need for the release resolved? Tickets reviewed? It would be nice to have the interrupt get/set priority API in RTEMS 6. The Cortex-M floating point issue is not yet

[PATCH 9/9] bsp/tms570: Use write-back/write-allocate SDRAM

2024-04-23 Thread Sebastian Huber
Update #4982. --- bsps/arm/tms570/start/tms570_sys_core.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsps/arm/tms570/start/tms570_sys_core.S b/bsps/arm/tms570/start/tms570_sys_core.S index 83dee26ec8..ef28d88ede 100644 --- a/bsps/arm/tms570/start/tms570_sys_core.S +++ b/b

[PATCH 8/9] bsp/tms570: Use RTI for CPU counter

2024-04-23 Thread Sebastian Huber
The performance monitor counter is stopped when the core is waiting for interrupts. Update #4982. --- bsps/arm/tms570/clock/clock.c | 71 -- bsps/arm/tms570/cpucounter/cpucounterread.c | 83 - spec/build/bsps/arm/tms570/obj.yml | 1 - 3

[PATCH 7/9] bsp/tms570: Add TMS570_FATAL_RTI_IRQ_INSTALL

2024-04-23 Thread Sebastian Huber
Update #4982. --- bsps/arm/tms570/clock/clock.c | 15 --- bsps/include/bsp/fatal.h | 3 +++ 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/bsps/arm/tms570/clock/clock.c b/bsps/arm/tms570/clock/clock.c index cf14d5772f..2fb884b3ce 100644 --- a/bsps/arm/tms570/cloc

[PATCH 1/9] arm: Add arm_cp15_data_cache_all_invalidate()

2024-04-23 Thread Sebastian Huber
Update #4982. --- cpukit/score/cpu/arm/include/libcpu/arm-cp15.h | 17 + 1 file changed, 17 insertions(+) diff --git a/cpukit/score/cpu/arm/include/libcpu/arm-cp15.h b/cpukit/score/cpu/arm/include/libcpu/arm-cp15.h index c239eaccc8..4a5ddb561e 100644 --- a/cpukit/score/cpu/arm/in

[PATCH 6/9] bsp/tms570: Fix clock driver

2024-04-23 Thread Sebastian Huber
The clock tick rate was off by a factor of two in some configurations. Use the maximum counter frequency to get the best time resolution. Do not use the automatic interrupt clear feature. Update #4982. --- bsps/arm/tms570/clock/clock.c | 99 +++ 1 file changed, 32

[PATCH 4/9] bsp/tms570: Add TMS570LC4357 PLL support

2024-04-23 Thread Sebastian Huber
Update #4982. --- bsps/arm/tms570/include/bsp/ti_herc/reg_sys.h | 27 +++ 1 file changed, 27 insertions(+) diff --git a/bsps/arm/tms570/include/bsp/ti_herc/reg_sys.h b/bsps/arm/tms570/include/bsp/ti_herc/reg_sys.h index d5583a1cca..1ca2bff685 100644 --- a/bsps/arm/tms570/include/

[PATCH 5/9] bsp/tms570: Add clock BSP options

2024-04-23 Thread Sebastian Huber
Update #4982. --- bsps/arm/tms570/clock/clock.c | 4 ++-- bsps/arm/tms570/console/tms570-sci.c| 2 +- bsps/arm/tms570/cpucounter/cpucounterread.c | 2 +- bsps/arm/tms570/include/bsp.h | 6 -- spec/build/bsps/arm/tms570/grp.yml | 12

[PATCH 3/9] bsps/cache: Fix ARM CP-15 get cache size

2024-04-23 Thread Sebastian Huber
The rtems_cache_get_data_cache_size() and rtems_cache_get_instruction_cache_size() functions shall return the entire cache size for a level of 0. Levels greater than 0 shall return the size of the associated level. Update #4982. --- bsps/arm/shared/cache/cache-cp15.c | 8 1 file changed

[PATCH 2/9] bsps/cache: Simplify Cortex-R5 cache support

2024-04-23 Thread Sebastian Huber
Update #4982. --- bsps/arm/shared/cache/cache-cp15.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/bsps/arm/shared/cache/cache-cp15.c b/bsps/arm/shared/cache/cache-cp15.c index 88fae2fb1f..92ccfcb276 100644 --- a/bsps/arm/shared/cache/cache-cp15.c +++ b/bsps/ar

[PATCH 0/9] bsp/tms570 Improvements

2024-04-23 Thread Sebastian Huber
Sebastian Huber (9): arm: Add arm_cp15_data_cache_all_invalidate() bsps/cache: Simplify Cortex-R5 cache support bsps/cache: Fix ARM CP-15 get cache size bsp/tms570: Add TMS570LC4357 PLL support bsp/tms570: Add clock BSP options bsp/tms570: Fix clock driver bsp/tms570: Add

[PATCH 6/6] bsps/arm: Fix Doxygen group assignment

2024-04-23 Thread Sebastian Huber
--- bsps/arm/shared/cache/cache-cp15.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bsps/arm/shared/cache/cache-cp15.c b/bsps/arm/shared/cache/cache-cp15.c index d78ec4feb4..88fae2fb1f 100644 --- a/bsps/arm/shared/cache/cache-cp15.c +++ b/bsps/arm/shared/cache/cache-cp

[PATCH 4/6] bsps/arm: Add Doxygen group for Armv7-M SysTick

2024-04-23 Thread Sebastian Huber
*/ + +/** + * @file + * + * @ingroup RTEMSDriverClockArmv7MSysTick + * + * @brief This header file provides support for Armv7-M clock drivers. + */ + /* - * Copyright (c) 2011, 2018 Sebastian Huber. All rights reserved. + * Copyright (C) 2024 embedded brains GmbH & Co. KG + * Copyright (C) 2011,

[PATCH 5/6] bsps/arm: Add CMSIS files to Doxygen group

2024-04-23 Thread Sebastian Huber
--- bsps/arm/shared/doxygen.h | 56 +++ 1 file changed, 56 insertions(+) diff --git a/bsps/arm/shared/doxygen.h b/bsps/arm/shared/doxygen.h index 469928d712..8dbf129f07 100644 --- a/bsps/arm/shared/doxygen.h +++ b/bsps/arm/shared/doxygen.h @@ -29,3 +29,59 @@

[PATCH 3/6] bsps/aarch64: Define Doxygen groups

2024-04-23 Thread Sebastian Huber
Fix typos. --- bsps/aarch64/include/bsp/linker-symbols.h | 2 +- bsps/aarch64/include/bsp/start.h | 2 +- bsps/aarch64/shared/doxygen.h | 23 +++ 3 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 bsps/aarch64/shared/doxygen.h diff --g

[PATCH 2/6] aarch64: Add files to Doxygen groups

2024-04-23 Thread Sebastian Huber
--- cpukit/score/cpu/aarch64/aarch64-thread-idle.c | 7 +-- cpukit/score/cpu/aarch64/include/rtems/asm.h | 5 - .../include/rtems/score/aarch64-system-registers.h | 2 ++ cpukit/score/cpu/aarch64/include/rtems/score/cpu.h | 10 +++--- 4 files changed, 18 in

[PATCH 0/6] Doxygen improvements

2024-04-23 Thread Sebastian Huber
Sebastian Huber (6): bsps: Add Doxygen group for Arm Generic Timer aarch64: Add files to Doxygen groups bsps/aarch64: Define Doxygen groups bsps/arm: Add Doxygen group for Armv7-M SysTick bsps/arm: Add CMSIS files to Doxygen group bsps/arm: Fix Doxygen group assignment bsps/aarch64

[PATCH 1/6] bsps: Add Doxygen group for Arm Generic Timer

2024-04-23 Thread Sebastian Huber
--- bsps/shared/dev/clock/arm-generic-timer.c | 26 --- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/bsps/shared/dev/clock/arm-generic-timer.c b/bsps/shared/dev/clock/arm-generic-timer.c index 44cf1ebe6c..b2842df175 100644 --- a/bsps/shared/dev/clock/arm-gene

[PATCH 3/3] bsps/arm: Move BSP-specific header file

2024-04-23 Thread Sebastian Huber
--- bsps/arm/{ => edb7312}/include/uart.h | 0 spec/build/bsps/arm/edb7312/bspedb7312.yml | 1 + spec/build/bsps/arm/grp.yml| 1 - 3 files changed, 1 insertion(+), 1 deletion(-) rename bsps/arm/{ => edb7312}/include/uart.h (100%) diff --git a/bsps/arm/include/uart.h b/bsps/a

[PATCH 2/3] bsps/arm: Use shared object for ARM920 MMU support

2024-04-23 Thread Sebastian Huber
--- spec/build/bsps/arm/csb336/bspcsb336.yml | 3 ++- spec/build/bsps/arm/csb337/grp.yml | 2 ++ spec/build/bsps/arm/csb337/obj.yml | 1 - spec/build/bsps/arm/grp.yml | 3 --- spec/build/bsps/arm/gumstix/bspgumstix.yml | 3 ++- spec/build/bsps/arm/ob

[PATCH 1/3] bsps/arm: Move BSP-specific header file installs

2024-04-23 Thread Sebastian Huber
--- spec/build/bsps/arm/beagle/obj.yml | 5 + spec/build/bsps/arm/grp.yml| 3 --- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/spec/build/bsps/arm/beagle/obj.yml b/spec/build/bsps/arm/beagle/obj.yml index 0f2f354ab9..eaaf09f6ac 100644 --- a/spec/build/bsps/arm/beagle

[PATCH 0/3] Build optimizations for arm BSPs

2024-04-23 Thread Sebastian Huber
Sebastian Huber (3): bsps/arm: Move BSP-specific header file installs bsps/arm: Use shared object for ARM920 MMU support bsps/arm: Move BSP-specific header file bsps/arm/{ => edb7312}/include/uart.h| 0 spec/build/bsps/arm/beagle/obj.yml | 5 + spec/build/bsps/

[PATCH] bsps: Use interrupt entry in clock driver

2024-04-23 Thread Sebastian Huber
This avoids a dependency on memory allocations. --- bsps/shared/dev/clock/arm-generic-timer.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/bsps/shared/dev/clock/arm-generic-timer.c b/bsps/shared/dev/clock/arm-generic-timer.c index ba159f6833..44cf1ebe6c 1006

Re: RTEMS 6 branching

2024-04-23 Thread Sebastian Huber
l mailing list > devel@rtems.org > http://lists.rtems.org/mailman/listinfo/devel -- embedded brains GmbH & Co. KG Herr Sebastian HUBER Dornierstr. 4 82178 Puchheim Germany email: sebastian.hu...@embedded-brains.de phone: +49-89-18 94 741 - 16 fax: +49-89-18 94 741 - 08 Registergeri

Re: [PATCH] Fix the CPU count calculation error.

2024-04-19 Thread Sebastian Huber
ly? One option could be to make the number of interrupt export ports configurable. -- embedded brains GmbH & Co. KG Herr Sebastian HUBER Dornierstr. 4 82178 Puchheim Germany email: sebastian.hu...@embedded-brains.de phone: +49-89-18 94 741 - 16 fax: +49-89-18 94 741 - 08 Registergericht:

Re: [PATCH] Fix the CPU count calculation error.

2024-04-19 Thread Sebastian Huber
Hello, on which platform does this fix a error? -- embedded brains GmbH & Co. KG Herr Sebastian HUBER Dornierstr. 4 82178 Puchheim Germany email: sebastian.hu...@embedded-brains.de phone: +49-89-18 94 741 - 16 fax: +49-89-18 94 741 - 08 Registergericht: Amtsgericht München Registernu

Re: 6.1rc3 CentOS 7 Build Sweep Report

2024-04-18 Thread Sebastian Huber
Hallo Joel, it would be nice to have the interrupt get/set priority directives in RTEMS 6. When do you want to create the RTEMS 6 branch? -- embedded brains GmbH & Co. KG Herr Sebastian HUBER Dornierstr. 4 82178 Puchheim Germany email: sebastian.hu...@embedded-brains.de phone: +49-89-1

Re: [RFC] rtems: Add options to kernel output char handler

2024-04-17 Thread Sebastian Huber
On 18.04.24 04:02, Chris Johns wrote: On 17/4/2024 11:06 pm, Sebastian Huber wrote: Make the kernel I/O output character device processing configurable through an option set parameter. Add RTEMS_NO_OUTPUT and RTEMS_FLUSH options. The goal of this API change is to enable flushing the kernel

[RFC] rtems: Add options to kernel output char handler

2024-04-17 Thread Sebastian Huber
Make the kernel I/O output character device processing configurable through an option set parameter. Add RTEMS_NO_OUTPUT and RTEMS_FLUSH options. The goal of this API change is to enable flushing the kernel output device in the system termination process before a reset is issued. A use case for

Re: [PATCH] bsps/arm: Improve GICv3 support

2024-04-16 Thread Sebastian Huber
tatus = arm_interrupt_enable_interrupts(); bsp_interrupt_handler_dispatch_unchecked(vector); arm_interrupt_restore_interrupts(status); WRITE_SR(ICC_EOIR1, icciar); } } -- embedded brains GmbH & Co. KG Herr Sebastian HUBER Dornierstr. 4 82178 Puchheim Germany email: sebastian.hu...@embedded-brains.de p

[PATCH] bsps/arm: Improve GICv3 support

2024-04-16 Thread Sebastian Huber
In addtion to 1023, the GICC_IAR register may return 1022 as a special value. Simply check for a valid interrupt vector for the dispatching. Check the GICC_IAR again after the dispatch to quickly process a next interrupt without having to go through the interrupt prologue and epiloge. --- bsps/sh

Re: [PATCH v2] rtems: Add get/set interrupt priorities

2024-04-15 Thread Sebastian Huber
On 09.04.24 16:28, Sebastian Huber wrote: Add directives to get and set the priority of an interrupt vector. Implement the directives for the following BSP families: * arm/lpc24xx * arm/lpc32xx * powerpc/mpc55xxevb * powerpc/qoriq Implement the directives for the following interrupt

Re: [PATCH] bsps/aarch64/raspberrypi: Add system timer support

2024-04-13 Thread Sebastian Huber
a legacy API, please don't include this header. -- embedded brains GmbH & Co. KG Herr Sebastian HUBER Dornierstr. 4 82178 Puchheim Germany email: sebastian.hu...@embedded-brains.de phone: +49-89-18 94 741 - 16 fax: +49-89-18 94 741 - 08 Registergericht: Amtsgericht München Registernu

Re: [PATCH 0/3] Improve Xilinx TTC clock driver

2024-04-11 Thread Sebastian Huber
On 11.04.24 16:56, Kinsey Moore wrote: Beyond the rebase issue, this patch set looks good. Thanks for the review, I checked it in. -- embedded brains GmbH & Co. KG Herr Sebastian HUBER Dornierstr. 4 82178 Puchheim Germany email: sebastian.hu...@embedded-brains.de phone: +49-89-18 94 741

Re: [PATCH 1/3] bsps/xil-ttc: Use interrupt entry

2024-04-11 Thread Sebastian Huber
d brains GmbH & Co. KG Herr Sebastian HUBER Dornierstr. 4 82178 Puchheim Germany email: sebastian.hu...@embedded-brains.de phone: +49-89-18 94 741 - 16 fax: +49-89-18 94 741 - 08 Registergericht: Amtsgericht München Registernummer: HRB 157899 Vertretungsberechtigte Geschäftsführer: Peter Ras

[PATCH] dev/irq: Improve Doxgyen group assignments

2024-04-10 Thread Sebastian Huber
Make the GIC interrupt controller support a subgroup of the generic interrupt controller support. --- bsps/aarch64/include/dev/irq/arm-gic-arch.h| 13 +++-- bsps/arm/include/dev/irq/arm-gic-arch.h| 13 +++-- bsps/include/dev/irq/arm-gic-irq.h | 15 ++

[PATCH 2/3] bsps/xil-ttc: Add XIL_FATAL_TTC_IRQ_INSTALL

2024-04-10 Thread Sebastian Huber
--- bsps/include/bsp/fatal.h | 3 + bsps/shared/dev/clock/xil-ttc.c | 6 +- .../bsps/fatal-clock-xil-ttc-irq-install.yml | 21 ++ spec/build/testsuites/validation/grp.yml | 2 + .../bsps/tr-fatal-clock-xil-ttc-irq-install.c | 187 ++

[PATCH 0/3] Improve Xilinx TTC clock driver

2024-04-10 Thread Sebastian Huber
Sebastian Huber (3): bsps/xil-ttc: Use interrupt entry bsps/xil-ttc: Add XIL_FATAL_TTC_IRQ_INSTALL bsps/xil-ttc: Improve clock driver bsps/arm/xilinx-zynqmp-rpu/include/bsp.h | 3 - bsps/arm/xilinx-zynqmp-rpu/include/bsp/irq.h | 1 - bsps/include/bsp/fatal.h

[PATCH 1/3] bsps/xil-ttc: Use interrupt entry

2024-04-10 Thread Sebastian Huber
--- bsps/shared/dev/clock/xil-ttc.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/bsps/shared/dev/clock/xil-ttc.c b/bsps/shared/dev/clock/xil-ttc.c index 340c428a48..384f23663b 100644 --- a/bsps/shared/dev/clock/xil-ttc.c +++ b/bsps/shared/dev/clock/xil-ttc.c

[PATCH 3/3] bsps/xil-ttc: Improve clock driver

2024-04-10 Thread Sebastian Huber
Make the clock driver parameters configurable. Use the maximum counter frequency to get the best time resolution. Decouple the CPU counter from the timecounter. Make the tick catch up handling more robust. Add a validation test for the tick catch up. --- bsps/arm/xilinx-zynqmp-rpu/include/bsp.

[rtems-docs] c-user: Document interrupt get/set priority

2024-04-09 Thread Sebastian Huber
Update #5002. --- c-user/interrupt/directives.rst | 185 +- c-user/interrupt/introduction.rst | 10 +- c-user/rtems_data_types.rst | 19 ++- 3 files changed, 211 insertions(+), 3 deletions(-) diff --git a/c-user/interrupt/directives.rst b/c-user/interrupt/dir

[PATCH v2] rtems: Add get/set interrupt priorities

2024-04-09 Thread Sebastian Huber
Add directives to get and set the priority of an interrupt vector. Implement the directives for the following BSP families: * arm/lpc24xx * arm/lpc32xx * powerpc/mpc55xxevb * powerpc/qoriq Implement the directives for the following interrupt controllers: * GICv2 and GICv3 (arm and aarch64) * NV

Re: GCC 14: Some warnings are now errors

2024-04-09 Thread Sebastian Huber
On 09.04.24 14:41, Joel Sherrill wrote: Is 14 the version for RTEMS 7 tools? If so, that makes it easier to address the issues. I don't have time to update the RTEMS 7 tools currently. -- embedded brains GmbH & Co. KG Herr Sebastian HUBER Dornierstr. 4 82178 Puchheim Germ

GCC 14: Some warnings are now errors

2024-04-09 Thread Sebastian Huber
Hello, I did some tests with GCC 14 and it turned out that this release turns a couple of warnings into errors: https://gcc.gnu.org/gcc-14/porting_to.html It will be a bit of work to get RTEMS compile clean for GCC 14. -- embedded brains GmbH & Co. KG Herr Sebastian HUBER Dornierst

[PATCH] validation: Fix powerpc in test case

2024-04-09 Thread Sebastian Huber
The powerpc context switch restores the interrupt state. Update #4955. --- testsuites/validation/tc-score-isr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testsuites/validation/tc-score-isr.c b/testsuites/validation/tc-score-isr.c index 9891829a84..b178541e72 100644 ---

[PATCH] score: Improve C/C++ standard compatibility

2024-04-09 Thread Sebastian Huber
The processor mask implementation uses flsl() from 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. --- cpukit/include/rtems/score/processormask.h| 379 +-- .../include/rtems/score/pr

[PATCH] bsps/arm: Improve GICv2 support

2024-04-08 Thread Sebastian Huber
In addtion to 1023, the GICC_IAR register may return 1022 as a special value. Simply check for a valid interrupt vector for the dispatching. Check the GICC_IAR again after the dispatch to quickly process a next interrupt without having to go through the interrupt prologue and epiloge. --- bsps/aa

[PATCH] testsuites/unit: Add tests for compiler builtins

2024-04-08 Thread Sebastian Huber
On the arm target, __udivmoddi4() cannot be fully tested through normal integer divisions. Update #3716. --- testsuites/unit/tc-compiler-builtins.c | 221 +++-- 1 file changed, 207 insertions(+), 14 deletions(-) diff --git a/testsuites/unit/tc-compiler-builtins.c b/testsuite

[PATCH] smptests/smpipi01: Fix sporadic test failure

2024-04-08 Thread Sebastian Huber
Make sure that the last IPI is processed before the next test case is carried out. --- testsuites/smptests/smpipi01/init.c | 48 + 1 file changed, 42 insertions(+), 6 deletions(-) diff --git a/testsuites/smptests/smpipi01/init.c b/testsuites/smptests/smpipi01/init.c i

[PATCH] rtems: Add get/set interrupt priorities

2024-04-05 Thread Sebastian Huber
Add directives to get and set the priority of an interrupt vector. Update #5002. --- cpukit/include/rtems/rtems/intr.h | 154 +- 1 file changed, 153 insertions(+), 1 deletion(-) diff --git a/cpukit/include/rtems/rtems/intr.h b/cpukit/include/rtems/rtems/intr.h index

Re: [PATCH v2 2/3] dev/serial: Add ZYNQ_UART_[01]_BASE_ADDR

2024-04-04 Thread Sebastian Huber
these two currently independent drivers. -- embedded brains GmbH & Co. KG Herr Sebastian HUBER Dornierstr. 4 82178 Puchheim Germany email: sebastian.hu...@embedded-brains.de phone: +49-89-18 94 741 - 16 fax: +49-89-18 94 741 - 08 Registergericht: Amtsgericht München Registernummer: HRB 15789

[PATCH v2 3/3] dev/serial: Add Zynq UART kernel I/O support

2024-03-27 Thread Sebastian Huber
Replace the BSP_CONSOLE_MINOR BSP option for the Xilinx Zynq BSPs with the new BSP option ZYNQ_UART_KERNEL_IO_BASE_ADDR. Move the kernel I/O support to a shared file. --- bsps/aarch64/xilinx-zynqmp/console/console.c | 41 ++ bsps/arm/xilinx-zynq/console/console-config.c | 50

[PATCH v2 2/3] dev/serial: Add ZYNQ_UART_[01]_BASE_ADDR

2024-03-27 Thread Sebastian Huber
This helps to provide a shared implementation of the kernel I/O support. --- bsps/aarch64/xilinx-zynqmp/console/console.c | 4 +- bsps/aarch64/xilinx-zynqmp/include/bsp.h | 2 + bsps/arm/xilinx-zynq/console/console-config.c | 5 +- bsps/arm/xilinx-zynq/include/bsp.h| 1 + ...

[PATCH v2 1/3] dev/serial: Simplify some Zynq UART functions

2024-03-27 Thread Sebastian Huber
Make the initialization and polled functions independent of the Termios context. This helps to implement the kernel I/O support without a dependency on the Termios framework. --- bsps/aarch64/xilinx-zynqmp/console/console.c | 23 --- bsps/arm/xilinx-zynq/console/debug-console.c | 15

Re: [PATCH] bsps/xilinx-zynqmp-rpu: Avoid constant UART reinit

2024-03-27 Thread Sebastian Huber
GmbH & Co. KG Herr Sebastian HUBER Dornierstr. 4 82178 Puchheim Germany email: sebastian.hu...@embedded-brains.de phone: +49-89-18 94 741 - 16 fax: +49-89-18 94 741 - 08 Registergericht: Amtsgericht München Registernummer: HRB 157899 Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Th

Re: [PATCH rtems6] Fix: type-cast to wrong type

2024-03-27 Thread Sebastian Huber
); #else Thanks, I checked it in. -- embedded brains GmbH & Co. KG Herr Sebastian HUBER Dornierstr. 4 82178 Puchheim Germany email: sebastian.hu...@embedded-brains.de phone: +49-89-18 94 741 - 16 fax: +49-89-18 94 741 - 08 Registergericht: Amtsgericht München Registernummer: HRB 15

Re: Xilinx header files installed by BSP

2024-03-27 Thread Sebastian Huber
On 25.03.24 21:36, Bernd Moessner wrote: On 25.03.2024 13:26, Sebastian Huber wrote: Hello, the BSPs for the Xilinx Zynq/ZynqMP/Versal platforms use code from Xilinx. They also install some header files from Xilinx in the top-level include directory of the BSP, for example: sleep.h

[PATCH v2] RTEMS: Add multilib configuration for aarch64

2024-03-27 Thread Sebastian Huber
Add a multilib with workarounds for Cortex-A53 errata. gcc/ChangeLog: * config.gcc (aarch64-*-rtems*): Add target makefile fragment t-aarch64-rtems. * config/aarch64/t-aarch64-rtems: New file. --- gcc/config.gcc | 1 + gcc/config/aarch64/t-aarch64-rte

Xilinx header files installed by BSP

2024-03-25 Thread Sebastian Huber
brains GmbH & Co. KG Herr Sebastian HUBER Dornierstr. 4 82178 Puchheim Germany email: sebastian.hu...@embedded-brains.de phone: +49-89-18 94 741 - 16 fax: +49-89-18 94 741 - 08 Registergericht: Amtsgericht München Registernummer: HRB 157899 Vertretungsberechtigte Geschäftsführer: Peter Rasmu

[GCC] RTEMS: Add multilib configuration for aarch64

2024-03-25 Thread Sebastian Huber
gcc/ChangeLog: * config.gcc (aarch64-*-rtems*): Add target makefile fragment t-aarch64-rtems. * config/aarch64/t-aarch64-rtems: New file. --- gcc/config.gcc | 1 + gcc/config/aarch64/t-aarch64-rtems | 41 ++ 2 files changed,

aarch64: -mno-outline-atomics

2024-03-25 Thread Sebastian Huber
http://devel.rtems.org/ticket/5003 Do we need an ILP32 multilib for Cortex-A53? -- embedded brains GmbH & Co. KG Herr Sebastian HUBER Dornierstr. 4 82178 Puchheim Germany email: sebastian.hu...@embedded-brains.de phone: +49-89-18 94 741 - 16 fax: +49-89-18 94 741 - 08 Registergericht: Am

Re: RFC: Add API to get and set interrupt priorities for interrupt vectors

2024-03-25 Thread Sebastian Huber
GICv3, ... I added those questions to the ticket also. Gedare On Wed, Mar 20, 2024 at 2:59 AM Sebastian Huber wrote: Hello, I added a ticket for a proposal for an API to get and set interrupt priorities for interrupt vectors: https://devel.rtems.org/ticket/5002 I would like to implement this A

Re: [PATCH 2/3] dev/serial: Add ZYNQ_UART_[01]_BASE_ADDR

2024-03-24 Thread Sebastian Huber
pplication depending on the system configuration. -- embedded brains GmbH & Co. KG Herr Sebastian HUBER Dornierstr. 4 82178 Puchheim Germany email: sebastian.hu...@embedded-brains.de phone: +49-89-18 94 741 - 16 fax: +49-89-18 94 741 - 08 Registergericht: Amtsgericht München Registernumm

Re: [PATCH 5/5] bsps: Add xilinx_zynqmp_lp64_a53 BSP variant

2024-03-24 Thread Sebastian Huber
having specific BSPs. The customization can be done through BSP options and a device tree. The only thing we need are the right compiler options. -- embedded brains GmbH & Co. KG Herr Sebastian HUBER Dornierstr. 4 82178 Puchheim Germany email: sebastian.hu...@embedded-brains.de phone: +49-89

Re: [PATCH 5/5] bsps: Add xilinx_zynqmp_lp64_a53 BSP variant

2024-03-24 Thread Sebastian Huber
have to enable some errata workarounds: https://devel.rtems.org/ticket/5003 -- embedded brains GmbH & Co. KG Herr Sebastian HUBER Dornierstr. 4 82178 Puchheim Germany email: sebastian.hu...@embedded-brains.de phone: +49-89-18 94 741 - 16 fax: +49-89-18 94 741 - 08 Registergericht: Amtsger

[PATCH] rtems: Avoid -Wundef warnings in API header

2024-03-22 Thread Sebastian Huber
--- cpukit/include/rtems/score/basedefs.h | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cpukit/include/rtems/score/basedefs.h b/cpukit/include/rtems/score/basedefs.h index 4f28e6a525..010728d795 100644 --- a/cpukit/include/rtems/score/basedefs.h +++ b/cpukit/inc

[PATCH 1/3] dev/serial: Simplify some Zynq UART functions

2024-03-22 Thread Sebastian Huber
Make the initialization and polled functions independent of the Termios context. This helps to implement the kernel I/O support without a dependency on the Termios framework. --- bsps/aarch64/xilinx-zynqmp/console/console.c | 23 --- bsps/arm/xilinx-zynq/console/debug-console.c | 15

[PATCH 3/3] dev/serial: Add Zynq UART kernel I/O support

2024-03-22 Thread Sebastian Huber
Replace the BSP_CONSOLE_MINOR BSP option for the Xilinx Zynq BSPs with the new BSP option ZYNQ_UART_KERNEL_IO_BASE_ADDR. Move the kernel I/O support to a shared file. --- bsps/aarch64/xilinx-zynqmp/console/console.c | 41 ++ bsps/arm/xilinx-zynq/console/console-config.c | 50

[PATCH 2/3] dev/serial: Add ZYNQ_UART_[01]_BASE_ADDR

2024-03-22 Thread Sebastian Huber
This helps to provide a shared implementation of the kernel I/O support. --- bsps/aarch64/xilinx-zynqmp/console/console.c | 4 ++-- bsps/arm/xilinx-zynq/console/console-config.c | 5 +++-- .../console/console-config.c | 4 ++-- .../xilinx-zynqmp/console/console-config.c|

  1   2   3   4   5   6   7   8   9   10   >