[PATCH v2] c-user: Add CONFIGURE_INIT_TASK_STORAGE_SIZE

2020-11-23 Thread Sebastian Huber
Close #4181. --- c-user/config/classic-init-task.rst | 59 - 1 file changed, 58 insertions(+), 1 deletion(-) diff --git a/c-user/config/classic-init-task.rst b/c-user/config/classic-init-task.rst index 4d3bf81..7b28acb 100644 --- a/c-user/config/classic-init-task.rst

Re: [PATCH 2/3] score: Add CONFIGURE_INIT_TASK_STORAGE_SIZE

2020-11-23 Thread Sebastian Huber
On 23/11/2020 21:23, Chris Johns wrote: On 23/11/20 7:46 pm, Sebastian Huber wrote: On 22/11/2020 23:22, Chris Johns wrote: On 20/11/20 7:31 pm, Sebastian Huber wrote: In order to better support applications which use the new rtems_task_construct() directive add the CONFIGURE_INIT_TASK_STORAG

[PATCH v2 1/4] Avoid INTERNAL_ERROR_RTEMS_INIT_TASK_ENTRY_IS_NULL

2020-11-23 Thread Sebastian Huber
Replace a runtime check with a compile time assertion. This makes the INTERNAL_ERROR_RTEMS_INIT_TASK_ENTRY_IS_NULL obsolete. Update #4181. --- cpukit/include/rtems/confdefs/inittask.h| 13 ++ cpukit/include/rtems/score/interr.h | 2 +- cpukit/rtems/src/taskinitusers.c

[PATCH v2 0/4] Add CONFIGURE_INIT_TASK_STORAGE_SIZE

2020-11-23 Thread Sebastian Huber
Currently, the Classic API initialization task is created with rtems_task_create(). In order to better support applications which use the new rtems_task_construct() directive add the CONFIGURE_INIT_TASK_STORAGE_SIZE configuration option which constructs the Classic API initialization task with rtem

[PATCH v2 2/4] config: Add CONFIGURE_INIT_TASK_STORAGE_SIZE

2020-11-23 Thread Sebastian Huber
In order to better support applications which use the new rtems_task_construct() directive add the CONFIGURE_INIT_TASK_STORAGE_SIZE configuration option. If this option is specified, then the Classic API initialization task is constructed with rtems_task_construct(). Update #4181. --- cpukit/Mak

[PATCH v2 3/4] config: Check CONFIGURE_INIT_TASK_STACK_SIZE

2020-11-23 Thread Sebastian Huber
--- cpukit/include/rtems/confdefs/inittask.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cpukit/include/rtems/confdefs/inittask.h b/cpukit/include/rtems/confdefs/inittask.h index 4183e00e54..450a4f4b53 100644 --- a/cpukit/include/rtems/confdefs/inittask.h +++ b/cpukit/include/rtems/conf

[PATCH v2 4/4] validation: Use CONFIGURE_INIT_TASK_STORAGE_SIZE

2020-11-23 Thread Sebastian Huber
Update #4181. --- testsuites/validation/ts-default.h | 109 +++-- 1 file changed, 40 insertions(+), 69 deletions(-) diff --git a/testsuites/validation/ts-default.h b/testsuites/validation/ts-default.h index 0f7db65a8e..ba994cdd1a 100644 --- a/testsuites/validation/ts-defa

Re: waf examples: how to modify linker flags/how to process generated exe.

2020-11-23 Thread Sebastian Huber
Hello Karel, a post-link step (for example a transformation of the ELF file into a boot loader image) is currently not supported by the new build system. For this the idea is to let the BSP optionally provide a "post-link" command line tool (a shell script for example) and then use a mechanism

Re: [PATCH] Add CGEM definitions for ZynqMP

2020-11-23 Thread Sebastian Huber
On 23/11/2020 23:05, Kinsey Moore wrote: rtemsbsd/include/bsp/nexus-devices.h | 7 +++ rtemsbsd/include/machine/rtems-bsd-nexus-bus.h | 16 Please check it in. -- embedded brains GmbH Sebastian HUBER Dornierstr. 4 82178 Puchheim Germany email: sebastian.hu...@

Re: Spike Hung for Almost Two Days

2020-11-23 Thread Chris Johns
On 24/11/20 8:27 am, Joel Sherrill wrote: > On Mon, Nov 23, 2020, 2:59 PM Chris Johns > wrote: > On 24/11/20 1:34 am, Joel Sherrill wrote: > > On Mon, Nov 23, 2020, 8:10 AM Joel Sherrill > >

[PATCH] Add CGEM definitions for ZynqMP

2020-11-23 Thread Kinsey Moore
--- rtemsbsd/include/bsp/nexus-devices.h | 7 +++ rtemsbsd/include/machine/rtems-bsd-nexus-bus.h | 16 2 files changed, 23 insertions(+) diff --git a/rtemsbsd/include/bsp/nexus-devices.h b/rtemsbsd/include/bsp/nexus-devices.h index 630572a8..51bca3aa 100644 --- a/

Re: Spike Hung for Almost Two Days

2020-11-23 Thread Joel Sherrill
On Mon, Nov 23, 2020, 2:59 PM Chris Johns wrote: > On 24/11/20 1:34 am, Joel Sherrill wrote: > > On Mon, Nov 23, 2020, 8:10 AM Joel Sherrill > > wrote: > > > > Hi > > > > I started my Monday by checking in on a build sweep and noticed that > a test > > was hung

Re: Spike Hung for Almost Two Days

2020-11-23 Thread Chris Johns
On 24/11/20 1:34 am, Joel Sherrill wrote: > On Mon, Nov 23, 2020, 8:10 AM Joel Sherrill > wrote: > > Hi > > I started my Monday by checking in on a build sweep and noticed that a > test > was hung and still running from Saturday. This is on CentOS. Anyone else

Re: [PATCH 2/3] score: Add CONFIGURE_INIT_TASK_STORAGE_SIZE

2020-11-23 Thread Chris Johns
On 23/11/20 7:46 pm, Sebastian Huber wrote: > On 22/11/2020 23:22, Chris Johns wrote: >> On 20/11/20 7:31 pm, Sebastian Huber wrote: >>> In order to better support applications which use the new >>> rtems_task_construct() directive add the >>> CONFIGURE_INIT_TASK_STORAGE_SIZE configuration option. 

waf examples: how to modify linker flags/how to process generated exe.

2020-11-23 Thread Karel Gardas
Hello, I'm slowly researching amd64 BSP multiboot domain and I'm curious if it is possible based on waf BSP's options to change either (or both) linker/gcc linking options (E.g. to add -z max-page-size=1000) and or process generated exe by other tool like objcopy (to create elf32 from elf64). M

Re: Qemu adds Host Requirement for Meson/Ninja

2020-11-23 Thread Joel Sherrill
On Mon, Nov 23, 2020, 10:56 AM Karel Gardas wrote: > > Not sure, I understand what's going on here, but just over the weekend > build qemu git on ubuntu 20.04 lts and the only missing package in my > setup was ninja which I installed with just: > > sudo apt install ninja > Thanks for this one.

Re: Qemu adds Host Requirement for Meson/Ninja

2020-11-23 Thread Karel Gardas
Not sure, I understand what's going on here, but just over the weekend build qemu git on ubuntu 20.04 lts and the only missing package in my setup was ninja which I installed with just: sudo apt install ninja IIRC, so ubuntu at least of this particular version should be easy to go... Karel On

Qemu adds Host Requirement for Meson/Ninja

2020-11-23 Thread Joel Sherrill
Hi With the recent update of Qemu to 5.x, it now uses Meson. I can add that to the CentOS host section but this will need to be propagated to other hosts. I will have to try this on our Ubuntu and FreeBSD test machines, but that leaves quite a few other hosts. Any ideas on the best way to accurat

Re: [PATCH] score/aarch64: Resolve warning in exception dump

2020-11-23 Thread Sebastian Huber
On 23/11/2020 17:22, Kinsey Moore wrote: This resolves a warning in the exception frame dump for AArch64 relating to a missized printf format specifier. Ok. -- embedded brains GmbH Sebastian HUBER Dornierstr. 4 82178 Puchheim Germany email: sebastian.hu...@embedded-brains.de Phone: +49-89-18 9

Re: [PATCH] wscript: Apply test state expectations correctly

2020-11-23 Thread Sebastian Huber
On 23/11/2020 17:21, Kinsey Moore wrote: The variety of expected test states are not currently applied to tests with names containing '-' correctly due to a failure to replace '-' with '_' before adding the CPPFLAGS to the environment for that test. This ensures that all additions of CPPFLAGS ha

[PATCH] score/aarch64: Resolve warning in exception dump

2020-11-23 Thread Kinsey Moore
This resolves a warning in the exception frame dump for AArch64 relating to a missized printf format specifier. --- cpukit/score/cpu/aarch64/aarch64-exception-frame-print.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpukit/score/cpu/aarch64/aarch64-exception-frame-prin

[PATCH] wscript: Apply test state expectations correctly

2020-11-23 Thread Kinsey Moore
The variety of expected test states are not currently applied to tests with names containing '-' correctly due to a failure to replace '-' with '_' before adding the CPPFLAGS to the environment for that test. This ensures that all additions of CPPFLAGS have that replacement performed so that the CP

Re: [PATCH v2 3/6] rtems: Move _Partition_Is_buffer_size_aligned()

2020-11-23 Thread Gedare Bloom
Thanks On Mon, Nov 23, 2020 at 3:36 AM Sebastian Huber wrote: > > It is only used by rtems_partition_create(). Move code directly into > the directive which called the inline function. > --- > cpukit/include/rtems/rtems/partimpl.h | 7 --- > cpukit/rtems/src/partcreate.c | 7 ++-

[PATCH] rtems: Improve rtems_interrupt_server_create()

2020-11-23 Thread Sebastian Huber
Also start interrupt server tasks on processors which do not have a scheduler. Applications may dynamically manage processors using rtems_scheduler_remove_processor() and rtems_scheduler_add_processor(). --- bsps/shared/irq/irq-server.c | 30 +++-- testsuites/smptests/smpirqs01/in

Re: Spike Hung for Almost Two Days

2020-11-23 Thread Joel Sherrill
On Mon, Nov 23, 2020, 8:10 AM Joel Sherrill wrote: > Hi > > I started my Monday by checking in on a build sweep and noticed that a > test was hung and still running from Saturday. This is on CentOS. Anyone > else ever see this from Spike? > > 0 R joel 24992 24151 99 80 0 - 529380 - Nov

RE: [PATCH] libtest: Fix undefined setjmp() behaviour

2020-11-23 Thread Kinsey Moore
-Original Message- From: devel On Behalf Of Sebastian Huber Sent: Monday, November 23, 2020 03:19 To: devel@rtems.org Subject: [PATCH] libtest: Fix undefined setjmp() behaviour > Bug was introduced by 78baeb757957fa0807c30e6c4d21ae99c9639e6a. > > Update #3199. > --- > cpukit/include/rtem

Re: libdl: How to debug dl object with GDB

2020-11-23 Thread Hesham Almatary
Thanks, Chris for the detailed reply. On Thu, 19 Nov 2020 at 22:56, Chris Johns wrote: > > On 19/11/20 5:33 pm, Hesham Almatary wrote: > > Thanks for the info, Chris. > > > > On Wed, 18 Nov 2020 at 02:43, Chris Johns wrote: > >> On 17/11/20 10:43 pm, Hesham Almatary wrote: > >>> Hello, > >>> > >

Spike Hung for Almost Two Days

2020-11-23 Thread Joel Sherrill
Hi I started my Monday by checking in on a build sweep and noticed that a test was hung and still running from Saturday. This is on CentOS. Anyone else ever see this from Spike? 0 R joel 24992 24151 99 80 0 - 529380 - Nov21 ? 1-22:33:37 spike --isa=RV64IMAFD ./riscv-rtems6/c/rv64imafd

[PATCH v2 6/6] rtems: Move _Partition_Allocate()

2020-11-23 Thread Sebastian Huber
It is only used by rtems_partition_create(). --- cpukit/include/rtems/rtems/partimpl.h | 12 cpukit/rtems/src/partcreate.c | 5 + 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/cpukit/include/rtems/rtems/partimpl.h b/cpukit/include/rtems/rtems/partimpl.h

[PATCH v2 3/6] rtems: Move _Partition_Is_buffer_size_aligned()

2020-11-23 Thread Sebastian Huber
It is only used by rtems_partition_create(). Move code directly into the directive which called the inline function. --- cpukit/include/rtems/rtems/partimpl.h | 7 --- cpukit/rtems/src/partcreate.c | 7 ++- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/cpukit/incl

[PATCH v2 4/6] rtems: Move _Partition_Is_buffer_area_aligned()

2020-11-23 Thread Sebastian Huber
It is only used by rtems_partition_create(). Move code directly to the directive which called the inline function. Add a comment. --- cpukit/include/rtems/rtems/partimpl.h | 7 --- cpukit/rtems/src/partcreate.c | 7 ++- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git

[PATCH v2 2/6] rtems: Move _Partition_Is_buffer_on_boundary()

2020-11-23 Thread Sebastian Huber
It is used only by rtems_partition_return_buffer().Make the PTCB the first parameter. Rename to _Partition_Is_address_on_buffer_boundary(). --- cpukit/include/rtems/rtems/partimpl.h | 22 -- cpukit/rtems/src/partreturnbuffer.c | 17 - 2 files changed, 16

[PATCH v2 1/6] rtems: Move _Partition_Is_buffer_valid()

2020-11-23 Thread Sebastian Huber
It is used only in one place. Make the PTCB the first parameter. Rename it to _Partition_Is_address_a_buffer_begin(). --- cpukit/include/rtems/rtems/partimpl.h | 23 --- cpukit/rtems/src/partreturnbuffer.c | 18 +- 2 files changed, 17 insertions(+), 24 deleti

[PATCH v2 0/6] Move inline functions of Partition Manager

2020-11-23 Thread Sebastian Huber
Sebastian Huber (6): rtems: Move _Partition_Is_buffer_valid() rtems: Move _Partition_Is_buffer_on_boundary() rtems: Move _Partition_Is_buffer_size_aligned() rtems: Move _Partition_Is_buffer_area_aligned() rtems: Move _Partition_Initialize() rtems: Move _Partition_Allocate() cpukit/inc

[PATCH v2 5/6] rtems: Move _Partition_Initialize()

2020-11-23 Thread Sebastian Huber
It is only used by rtems_partition_create(). Fix integer types. --- cpukit/include/rtems/rtems/partimpl.h | 25 - cpukit/rtems/src/partcreate.c | 25 + 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/cpukit/include/rtems/rte

Re: [PATCH 5/8] libtest: Allow assert checks during test begin

2020-11-23 Thread Sebastian Huber
On 21/11/2020 01:47, Kinsey Moore wrote: -Original Message- From: devel On Behalf Of Sebastian Huber Sent: Friday, November 13, 2020 04:08 To:devel@rtems.org Subject: [PATCH 5/8] libtest: Allow assert checks during test begin Allow assert checks in test begin actions and setup fixture

[PATCH] libtest: Fix undefined setjmp() behaviour

2020-11-23 Thread Sebastian Huber
Bug was introduced by 78baeb757957fa0807c30e6c4d21ae99c9639e6a. Update #3199. --- cpukit/include/rtems/test.h | 3 +- cpukit/libtest/t-test.c | 110 +++- 2 files changed, 60 insertions(+), 53 deletions(-) diff --git a/cpukit/include/rtems/test.h b/cpukit/inc

Re: Proposal for hardware configuration dependent performance limits

2020-11-23 Thread Sebastian Huber
On 22/11/2020 22:45, Chris Johns wrote: My point is that we need a key reported by the BSP and then some performance limits which can be found by arch/bsp/key to check if there are performance regressions. I am missing the place where the performance limits are held. Do the tests report timing

Re: [PATCH] rtems: Delete rtems_object_id_api_maximum_class()

2020-11-23 Thread Sebastian Huber
On 20/11/2020 19:45, Sebastian Huber wrote: On 20/11/2020 18:56, Joel Sherrill wrote: It should be implemented. File a ticket if you don't want to do it now. But don't delete it. It should be there for completeness. I would have thought there was code that iterated over all the APIs and cla

Re: [PATCH 2/3] score: Add CONFIGURE_INIT_TASK_STORAGE_SIZE

2020-11-23 Thread Sebastian Huber
Hello Chris, On 22/11/2020 23:22, Chris Johns wrote: On 20/11/20 7:31 pm, Sebastian Huber wrote: In order to better support applications which use the new rtems_task_construct() directive add the CONFIGURE_INIT_TASK_STORAGE_SIZE configuration option. If this option is specified, then the Class