Re: Update of libbsd to close to FreeBSD 12 release planned

2018-09-14 Thread Chris Johns
On 14/9/18 7:08 pm, Sebastian Huber wrote: > Hello, > > I have now a working update to FreeBSD 2018-09-12. I tested it on: > > * Xilinx Zynq Qemu (ARMv7-A) > * Altera Cyclone V Devkit > * Microchip ATSAM V71 (ARMv7-M) > * NXP MCF548x (ColdFire) > * NXP i.MX 7D > * NXP QorIQ T4240 (PowerPC 64-bit)

Re: [PATCH 11/25] Merge sapi/Makefile.am into cpukit/Makefile.am

2018-09-14 Thread Chris Johns
On 14/9/18 11:18 pm, Sebastian Huber wrote: > --- > cpukit/Makefile.am| 79 > ++- > cpukit/configure.ac | 1 - > cpukit/sapi/Makefile.am | 63 > cpukit/{sapi => }/vc-key.sh

Re: Kernel-space ctypes.h support?

2018-09-14 Thread Joel Sherrill
On Fri, Sep 14, 2018 at 12:57 AM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > On 14/09/2018 04:27, Joel Sherrill wrote: > > > > > > On Thu, Sep 13, 2018, 9:25 PM Chris Johns > > wrote: > > > > On 14/09/2018 10:13, Joel Sherrill wrote: > > > On Th

Trouble with rtems-libbsd

2018-09-14 Thread Jeff Mayes
Hi Just reporting as FYI. I'm building for powerpc, but it looks like it's building some ARM components too and failing. Thanks in advance! Jeff Here's my rtems configure, which seems to work: # ../rtems/configure --prefix=/home/tester/rtems/kernel/ppc \ --target=powerpc-rtems5 --enable-rte

Re: [PATCH 01/25] rpc: Use configuration header file

2018-09-14 Thread Sebastian Huber
The goal of this patch series is to get rid of the cpukit/wrapup stuff and all Makefile.am other than cpukit/Makefile.am in this tree. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail

[PATCH 17/25] Merge libcsupport/Make*.am into cpukit/Makefile.am

2018-09-14 Thread Sebastian Huber
--- cpukit/Makefile.am | 196 - cpukit/configure.ac| 1 - cpukit/libcsupport/Makefile.am | 134 cpukit/wrapup/Makefile.am | 2 - 4 files changed, 195 insertions(+), 138 deletions(-) delete mode 1

[PATCH 24/25] Merge libmd/Makefile.am into cpukit/Makefile.am

2018-09-14 Thread Sebastian Huber
--- cpukit/Makefile.am| 10 +- cpukit/configure.ac | 1 - cpukit/libmd/Makefile.am | 14 -- cpukit/wrapup/Makefile.am | 4 4 files changed, 9 insertions(+), 20 deletions(-) delete mode 100644 cpukit/libmd/Makefile.am diff --git a/cpukit/Makefile.am b/cpu

[PATCH 25/25] Merge libpci/Makefile.am into cpukit/Makefile.am

2018-09-14 Thread Sebastian Huber
--- cpukit/Makefile.am| 26 ++ cpukit/configure.ac | 1 - cpukit/wrapup/Makefile.am | 4 3 files changed, 26 insertions(+), 5 deletions(-) diff --git a/cpukit/Makefile.am b/cpukit/Makefile.am index c9c61fdb36..6675f9d38a 100644 --- a/cpukit/Makefile.am

[PATCH 21/25] Merge libfs/Makefile.am into cpukit/Makefile.am

2018-09-14 Thread Sebastian Huber
--- cpukit/Makefile.am | 171 - cpukit/configure.ac| 2 - cpukit/libfs/Makefile.am | 145 cpukit/libfs/src/nfsclient/Makefile.am | 31 -- cpukit/wrapup/Makefile.am

[PATCH 23/25] Merge libi2c/Makefile.am into cpukit/Makefile.am

2018-09-14 Thread Sebastian Huber
--- cpukit/Makefile.am| 2 +- cpukit/configure.ac | 1 - cpukit/libi2c/Makefile.am | 7 --- cpukit/wrapup/Makefile.am | 1 - 4 files changed, 1 insertion(+), 10 deletions(-) delete mode 100644 cpukit/libi2c/Makefile.am diff --git a/cpukit/Makefile.am b/cpukit/Makefile.am index

[PATCH 22/25] Merge libgnat/Makefile.am into cpukit/Makefile.am

2018-09-14 Thread Sebastian Huber
--- cpukit/Makefile.am| 9 - cpukit/configure.ac | 1 - cpukit/wrapup/Makefile.am | 4 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/cpukit/Makefile.am b/cpukit/Makefile.am index 8912d65de0..8c3252568d 100644 --- a/cpukit/Makefile.am +++ b/cpukit/Makefil

[PATCH 13/25] Merge ftpd/Makefile.am into cpukit/Makefile.am

2018-09-14 Thread Sebastian Huber
--- cpukit/Makefile.am | 14 +- cpukit/configure.ac | 1 - cpukit/ftpd/Makefile.am | 11 --- 3 files changed, 13 insertions(+), 13 deletions(-) delete mode 100644 cpukit/ftpd/Makefile.am diff --git a/cpukit/Makefile.am b/cpukit/Makefile.am index 6a01fc6d89..cd128a5b

[PATCH 18/25] Merge libdebugger/Make*.am into cpukit/Makefile.am

2018-09-14 Thread Sebastian Huber
--- cpukit/Makefile.am | 21 - cpukit/configure.ac| 1 - cpukit/libdebugger/Makefile.am | 22 -- 3 files changed, 20 insertions(+), 24 deletions(-) delete mode 100644 cpukit/libdebugger/Makefile.am diff --git a/cpukit/Makefile.am b

[PATCH 19/25] Merge libdl/Makefile.am into cpukit/Makefile.am

2018-09-14 Thread Sebastian Huber
--- cpukit/Makefile.am| 30 +- cpukit/configure.ac | 1 - cpukit/libdl/Makefile.am | 35 --- cpukit/wrapup/Makefile.am | 4 4 files changed, 29 insertions(+), 41 deletions(-) delete mode 100644 cpukit/libdl/Makefile

[PATCH 12/25] Merge dev/Makefile.am into cpukit/Makefile.am

2018-09-14 Thread Sebastian Huber
--- cpukit/Makefile.am| 15 ++- cpukit/configure.ac | 1 - cpukit/dev/Makefile.am| 23 --- cpukit/wrapup/Makefile.am | 1 - 4 files changed, 14 insertions(+), 26 deletions(-) delete mode 100644 cpukit/dev/Makefile.am diff --git a/cpukit/Makefil

[PATCH 16/25] Merge libcrypt/Makefile.am into cpukit/Makefile.am

2018-09-14 Thread Sebastian Huber
--- cpukit/Makefile.am | 6 +- cpukit/configure.ac | 1 - cpukit/libcrypt/Makefile.am | 12 cpukit/wrapup/Makefile.am | 1 - 4 files changed, 5 insertions(+), 15 deletions(-) delete mode 100644 cpukit/libcrypt/Makefile.am diff --git a/cpukit/Makefile.am b/c

[PATCH 20/25] Merge libdrvmgr/Make*.am into cpukit/Makefile.am

2018-09-14 Thread Sebastian Huber
--- cpukit/Makefile.am | 24 +++- cpukit/configure.ac | 1 - cpukit/libdrvmgr/Makefile.am | 32 cpukit/wrapup/Makefile.am| 4 4 files changed, 23 insertions(+), 38 deletions(-) delete mode 100644 cpukit/libdrvmgr/M

[PATCH 10/25] Remove specialized CPPFLAGS from Makefile.am

2018-09-14 Thread Sebastian Huber
--- cpukit/dtc/libfdt/Makefile.am | 1 - cpukit/libcrypt/Makefile.am | 2 -- cpukit/libcsupport/Makefile.am| 2 -- cpukit/libmd/Makefile.am | 1 - cpukit/libmisc/Makefile.am| 1 - cpukit/librpc/Makefile.am | 2 -- cpukit/libstdthreads/

[PATCH 06/25] Rename files to make them unique within cpukit

2018-09-14 Thread Sebastian Huber
This allows to build librtemscpu.a in one rush in the future. --- cpukit/posix/Makefile.am | 4 ++-- cpukit/posix/src/{semaphore.c => psxsemaphore.c} | 0 cpukit/posix/src/{timercreate.c => psxtimercreate.c} | 0 cpukit/posix/src/{timerdelete.c => psxtimerdele

[PATCH 09/25] Optimize calloc()

2018-09-14 Thread Sebastian Huber
Use return value of memset() to enable tail call optimizations. --- cpukit/libcsupport/src/calloc.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cpukit/libcsupport/src/calloc.c b/cpukit/libcsupport/src/calloc.c index 20db533786..78b08ab5a5 100644 --- a/cpukit/libcsu

[PATCH 07/25] Remove superfluous pipe_create()

2018-09-14 Thread Sebastian Huber
--- cpukit/include/rtems/pipe.h| 9 - cpukit/libcsupport/Makefile.am | 2 +- cpukit/libcsupport/src/pipe.c | 39 --- cpukit/libfs/src/pipe/pipe.c | 5 - 4 files changed, 5 insertions(+), 50 deletions(-) delete mode 100644 cpukit/libcsuppor

[PATCH 08/25] Avoid need for -fno-builtin for calloc()

2018-09-14 Thread Sebastian Huber
Use RTEMS_OBFUSCATE_VARIABLE() instead. --- cpukit/libcsupport/src/calloc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cpukit/libcsupport/src/calloc.c b/cpukit/libcsupport/src/calloc.c index 915ece3e17..20db533786 100644 --- a/cpukit/libcsupport/src/calloc.c +++ b/cpukit/libcsupport/src

[PATCH 05/25] bsps/mips: Remove unused command line defines

2018-09-14 Thread Sebastian Huber
Update #3375. --- c/src/lib/libbsp/mips/hurricane/Makefile.am | 1 - c/src/lib/libbsp/mips/jmr3904/Makefile.am | 1 - c/src/lib/libbsp/mips/rbtx4938/Makefile.am | 1 - 3 files changed, 3 deletions(-) diff --git a/c/src/lib/libbsp/mips/hurricane/Makefile.am b/c/src/lib/libbsp/mips/hurricane/Ma

[PATCH 15/25] Merge libblock/Makefile.am into cpukit/Makefile.am

2018-09-14 Thread Sebastian Huber
--- cpukit/Makefile.am | 32 +++- cpukit/configure.ac | 1 - cpukit/libblock/Makefile.am | 40 cpukit/wrapup/Makefile.am | 1 - 4 files changed, 31 insertions(+), 43 deletions(-) delete mode 100644 cpukit/li

[PATCH 02/25] pppd: Simplify Makefile.am

2018-09-14 Thread Sebastian Huber
Update #3375. --- cpukit/pppd/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpukit/pppd/Makefile.am b/cpukit/pppd/Makefile.am index 53a05761f4..5fdfb5ef30 100644 --- a/cpukit/pppd/Makefile.am +++ b/cpukit/pppd/Makefile.am @@ -12,7 +12,7 @@ libpppd_a_SOURCES = auth

[PATCH 01/25] rpc: Use configuration header file

2018-09-14 Thread Sebastian Huber
Update #3375. --- cpukit/librpc/Makefile.am| 5 +--- cpukit/librpc/src/rpc/auth_none.c| 2 ++ cpukit/librpc/src/rpc/auth_unix.c| 2 ++ cpukit/librpc/src/rpc/authunix_prot.c| 2 ++ cpukit/librpc/src/rpc/bindresvport.c | 2 ++ cpukit/librpc/src/rpc/clnt_g

[PATCH 14/25] Merge libfdt/Makefile.am into cpukit/Makefile.am

2018-09-14 Thread Sebastian Huber
--- cpukit/Makefile.am| 9 - cpukit/configure.ac | 1 - cpukit/dtc/libfdt/Makefile.am | 15 --- cpukit/wrapup/Makefile.am | 1 - 4 files changed, 8 insertions(+), 18 deletions(-) delete mode 100644 cpukit/dtc/libfdt/Makefile.am diff --git a/cpukit

[PATCH 03/25] mghttpd: Add configuration to source file

2018-09-14 Thread Sebastian Huber
Update #3375. --- cpukit/mghttpd/Makefile.am | 2 -- cpukit/mghttpd/mongoose.c | 4 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cpukit/mghttpd/Makefile.am b/cpukit/mghttpd/Makefile.am index c3e605c679..5058f8b85e 100644 --- a/cpukit/mghttpd/Makefile.am +++ b/cpukit/mghttpd

[PATCH 04/25] libdl: Avoid command line defines

2018-09-14 Thread Sebastian Huber
Update #3375. --- cpukit/libdl/Makefile.am | 1 - cpukit/libdl/rtl-obj.c | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cpukit/libdl/Makefile.am b/cpukit/libdl/Makefile.am index 8b95a7d91c..e58b332713 100644 --- a/cpukit/libdl/Makefile.am +++ b/cpukit/libdl/Makefile.am @@

[PATCH] Optimize callout handline via static timer wheel

2018-09-14 Thread Sebastian Huber
The number of callouts is a compile-time constant in libbsd. Use this in struct callout_cpu and avoid dynamic allocation of tables. This signficantly reduces the count of load instructions in the callout handling. --- freebsd/sys/kern/kern_timeout.c | 18 +-

Re: Update of libbsd to close to FreeBSD 12 release planned

2018-09-14 Thread Sebastian Huber
Hello, I have now a working update to FreeBSD 2018-09-12. I tested it on: * Xilinx Zynq Qemu (ARMv7-A) * Altera Cyclone V Devkit * Microchip ATSAM V71 (ARMv7-M) * NXP MCF548x (ColdFire) * NXP i.MX 7D * NXP QorIQ T4240 (PowerPC 64-bit) * NXP MPC860 (PowerPC 32-bit) I did the update in eight step