Re: [rtems-tools] record does not compile with llvm9

2019-12-17 Thread Sebastian Huber
On 17/12/2019 15:48, l...@c-mauderer.de wrote: It compiles on llvm9 but I didn't test it on llvm7 or 8. Beneath that it's an untested change. It works on llvm7. Please check it in. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189

Re: What should confdefs.h do if CONFIGURE_INIT is not defined?

2019-12-17 Thread Chris Johns
On 18/12/19 1:28 am, Sebastian Huber wrote: > On 17/12/2019 15:13, Joel Sherrill wrote: >> Now I generally recommend putting RTEMS configuration and an init task >> to start RTEMS services in a dedicated file and invoking main() to start >> the application. There are some of the rtems-examples whic

Re: Problem running RTEMS on raspberrypi3

2019-12-17 Thread Christian Mauderer
That handler doesn't look like an RTEMS handler. So it failed at a very early stage. Did you try a go 0x20 instead? Normally the first vector is a reset vector which jumps to the right start address. The jump can have a mode with it. So if you directly jump to 0x200080 the core might is in a w

Re: Problem running RTEMS on raspberrypi3

2019-12-17 Thread Christian Mauderer
I tried booting it on the Pi 1 without success. So it seems that I either don't have the right steps or that something is broken. I would lean to the first one because I don't really have put much time into it. Do you have any old Pi where you could try it first? Maybe it would be good to ask whe

[rtems-tools] record does not compile with llvm9

2019-12-17 Thread list
Hello, if I try to compile the rtems-tools on my Arch Linux system with a llvm library version 9 I get the error at the end of the mail. It seems that the API for symbolizeCode changed between version 8 and 9 of llvm. I created a patch (see follow up mail) that uses the same adaption like in llvm

[rtems-tools PATCH] record: Allow to compile with recent llvm version.

2019-12-17 Thread list
From: Christian Mauderer It seems that the API for symbolizeCode changed between llvm8 and llvm9. This patch uses the same adaption that is used for the llvm-symbolizer tool in llvm commit b2c4b8bded3ff2efaaebe0d8b33c65116f9ef8de. --- trace/record/record-main-lttng.cc | 7 ++- 1 file changed

Re: What should confdefs.h do if CONFIGURE_INIT is not defined?

2019-12-17 Thread Sebastian Huber
On 17/12/2019 15:13, Joel Sherrill wrote: My approach would be to place all the define evaluations into a #ifdef CONFIGURE_INIT guard, so that #include provides nothing to the C compiler if CONFIGURE_INIT is not defined. Originally, the intent was that user code could use CONFIG

Re: What should confdefs.h do if CONFIGURE_INIT is not defined?

2019-12-17 Thread Joel Sherrill
On Tue, Dec 17, 2019 at 2:43 AM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > Hello, > > I plan to move content from confdefs.h to separate header files for > configuration groups. What should confdefs.h do if CONFIGURE_INIT is not > defined? > > Should we do the consistency check

Re: Ada configuration options

2019-12-17 Thread Sebastian Huber
On 17/12/2019 14:38, Joel Sherrill wrote: On Tue, Dec 17, 2019 at 3:45 AM Sebastian Huber > wrote: Hello, we have currently three Ada related configuration options: * CONFIGURE_GNAT_RTEMS * CONFIGURE_MAXIMUM_ADA_TASKS * CONFI

Re: Ada configuration options

2019-12-17 Thread Joel Sherrill
On Tue, Dec 17, 2019 at 3:45 AM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > Hello, > > we have currently three Ada related configuration options: > > * CONFIGURE_GNAT_RTEMS > > * CONFIGURE_MAXIMUM_ADA_TASKS > > * CONFIGURE_MAXIMUM_FAKE_ADA_TASKS > > The CONFIGURE_MAXIMUM_FAKE_AD

Ada configuration options

2019-12-17 Thread Sebastian Huber
Hello, we have currently three Ada related configuration options: * CONFIGURE_GNAT_RTEMS * CONFIGURE_MAXIMUM_ADA_TASKS * CONFIGURE_MAXIMUM_FAKE_ADA_TASKS The CONFIGURE_MAXIMUM_FAKE_ADA_TASKS option has no effect. The CONFIGURE_GNAT_RTEMS is mandatory to use the CONFIGURE_MAXIMUM_ADA_TASKS

[PATCH] c-user: CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS

2019-12-17 Thread Sebastian Huber
Rename CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS in CONFIGURE_MAXIMUM_FILE_DESCRIPTORS. Close #3753. --- c-user/configuring_a_system.rst | 26 +- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/c-user/configuring_a_system.rst b/c-user/configuring_a_system.rst

[PATCH] c-user: CONFIGURE_HAS_OWN_DEVICE_DRIVER_TABLE

2019-12-17 Thread Sebastian Huber
Remove CONFIGURE_HAS_OWN_DEVICE_DRIVER_TABLE. Close #3844. --- c-user/configuring_a_system.rst | 40 1 file changed, 8 insertions(+), 32 deletions(-) diff --git a/c-user/configuring_a_system.rst b/c-user/configuring_a_system.rst index 17278c0..7eb472b 100

[PATCH] config: CONFIGURE_HAS_OWN_DEVICE_DRIVER_TABLE

2019-12-17 Thread Sebastian Huber
Remove CONFIGURE_HAS_OWN_DEVICE_DRIVER_TABLE. Update #3844. --- cpukit/include/rtems/confdefs.h | 58 - 1 file changed, 28 insertions(+), 30 deletions(-) diff --git a/cpukit/include/rtems/confdefs.h b/cpukit/include/rtems/confdefs.h index 05dfc3c91a..7c7b6

What should confdefs.h do if CONFIGURE_INIT is not defined?

2019-12-17 Thread Sebastian Huber
Hello, I plan to move content from confdefs.h to separate header files for configuration groups. What should confdefs.h do if CONFIGURE_INIT is not defined? Should we do the consistency checks for example if CONFIGURE_INIT is not defined, e.g. #if defined(CONFIGURE_UNLIMITED_OBJECTS) #if

[PATCH] config: CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS

2019-12-17 Thread Sebastian Huber
Rename CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS into CONFIGURE_MAXIMUM_FILE_DESCRIPTORS. Update #3753. --- cpukit/include/rtems/confdefs.h| 11 --- cpukit/libmisc/dummy/default-configuration.c | 2 +- testsuites/fstests/fsbdpart01/init.c | 2 +- testsuites/fs