[PATCH] waf: Add --rtems-version as a configure option

2021-11-13 Thread chrisj
From: Chris Johns - Provide the option `--rtems-version` to set the major version number - Add a method to handle setting action values - Return the spec YAML file back to it's original values as it does not allow a user to change the version. Closes #4548 ---

[PATCH v2] spec/libdebugger: Only enable for supported architectures

2021-10-21 Thread chrisj
From: Chris Johns Closes #4533 --- spec/build/cpukit/cpuopts.yml | 2 ++ spec/build/cpukit/libdebugger.yml | 2 +- spec/build/cpukit/optlibdebugger.yml | 16 spec/build/testsuites/libtests/debugger01.yml | 4 +--- 4 files changed, 20

[PATCH] spec/libdebugger: Only enable for supported architectures

2021-10-20 Thread chrisj
From: Chris Johns --- spec/build/cpukit/libdebugger.yml | 5 - spec/build/testsuites/libtests/debugger01.yml | 4 +--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/spec/build/cpukit/libdebugger.yml b/spec/build/cpukit/libdebugger.yml index

[PATCH 4/4] Add support for Xilinx Versal APAC

2021-10-19 Thread chrisj
From: Chris Johns --- libbsd.py | 1 + rtemsbsd/include/bsp/nexus-devices.h | 9 + .../include/machine/rtems-bsd-nexus-bus.h | 28 +++ rtemsbsd/sys/arm64/xilinx/versal_slcr.c | 223 ++

[PATCH 3/4] rtemsbsd/nfsclient: Fix the error code return value

2021-10-19 Thread chrisj
From: Chris Johns --- rtemsbsd/fs/nfsclient/nfs.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/rtemsbsd/fs/nfsclient/nfs.c b/rtemsbsd/fs/nfsclient/nfs.c index fe8d8412..5a6e8fae 100644 --- a/rtemsbsd/fs/nfsclient/nfs.c +++ b/rtemsbsd/fs/nfsclient/nfs.c @@

[PATCH 2/4] waf: Move the tools/BSP include path to be last

2021-10-19 Thread chrisj
From: Chris Johns - This change lets you rebuild libbsd after it is installed --- waf_libbsd.py | 29 + 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/waf_libbsd.py b/waf_libbsd.py index 97e6d6ee..0901537e 100644 --- a/waf_libbsd.py +++

[PATCH 1/4] rtemsbsd: Clear bus DMA memory a byte at a time

2021-10-19 Thread chrisj
From: Chris Johns - memset may be optimized for performance and might work with device type memory. Clear a byte at a time. --- rtemsbsd/rtems/rtems-kernel-bus-dma.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/rtemsbsd/rtems/rtems-kernel-bus-dma.c

[PATCH] rtems/6: Update binutils to 2.37

2021-10-18 Thread chrisj
From: Chris Johns --- rtems/config/6/rtems-default.bset | 2 +- rtems/config/tools/rtems-binutils-2.37.cfg | 15 +++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 rtems/config/tools/rtems-binutils-2.37.cfg diff --git

[PATCH] testsuite/spcache01: Clear allocated coherent cache memory

2021-10-17 Thread chrisj
From: Chris Johns - Coherent cache memory is used in libbsd for things like descriptors and it optionally clears the memory on allocation. Test is works. --- testsuites/sptests/spcache01/init.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git

[PATCH rtems-libbsd] rtemsbsd/syscalls: Remove pipe()

2021-09-22 Thread chrisj
From: Chris Johns - This call is provided by RTEMS and that is preferred Closes #4518 --- rtemsbsd/rtems/rtems-bsd-syscall-api.c | 52 testsuite/selectpollkqueue01/test_main.c | 155 --- 2 files changed, 207 deletions(-) diff --git

[PATCH rtems-docs] user/testing: Add the %wait directive

2021-09-22 Thread chrisj
From: Chris Johns --- user/testing/configuration.rst | 84 +++--- user/testing/tftp.rst | 12 +++-- 2 files changed, 86 insertions(+), 10 deletions(-) diff --git a/user/testing/configuration.rst b/user/testing/configuration.rst index 9c65506..4d67482 100644

[PATCH rtems-libbsd] rtemsbsd/open: Correctly open a mount directory

2021-09-22 Thread chrisj
From: Chris Johns - If the open is for a directory and it is the root of the mounted file system open from the pseudo's root node. --- rtemsbsd/rtems/rtems-bsd-syscall-api.c | 62 ++ rtemsbsd/rtems/rtems-kernel-vfs.c | 3 ++ testsuite/nfs01/test_main.c

[PATCH rtems-tools 3/3] tester/mvme2307: Add support for the MVME2307 (MVME2700) BSP

2021-09-21 Thread chrisj
From: Chris Johns - Assumes a stand alone TFTP server --- tester/rtems/testing/bsps/mvme2307.ini | 59 ++ 1 file changed, 59 insertions(+) create mode 100644 tester/rtems/testing/bsps/mvme2307.ini diff --git a/tester/rtems/testing/bsps/mvme2307.ini

[PATCH rtems-tools 2/3] tester/wait: Add a wait directive to the tester

2021-09-21 Thread chrisj
From: Chris Johns - Lets you test with stand alone TFTP or other services --- tester/rt/config.py | 27 +- tester/rt/wait.py | 154 ++ tester/rtems/testing/wait.cfg | 54 3 files changed, 233 insertions(+), 2 deletions(-)

[PATCH rtems-tools 1/3] tester/exe: Adjust timeouts by the step size

2021-09-21 Thread chrisj
From: Chris Johns --- tester/rt/exe.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tester/rt/exe.py b/tester/rt/exe.py index 13b9686..626899e 100644 --- a/tester/rt/exe.py +++ b/tester/rt/exe.py @@ -116,12 +116,12 @@ class exe(object): def _monitor(self,

[PATCH rtems 5 1/2] powerpc/io: Make [out/in] le and be calls conditional

2021-09-20 Thread chrisj
From: Chris Johns - These calls clash with the Linux IO header in LibBSD. Making these conditional here means BSPs build and the imported Linux header is untouched. Updates #4245 --- bsps/powerpc/include/libcpu/io.h | 8 1 file changed, 8 insertions(+) diff --git

[PATCH rtems 5 2/2] powerpc/motorola_powerpc: Map LibBSD bus space to the PCI base address

2021-09-20 Thread chrisj
From: Chris Johns Closes #4516 --- bsps/powerpc/motorola_powerpc/include/bsp.h | 34 +++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/bsps/powerpc/motorola_powerpc/include/bsp.h b/bsps/powerpc/motorola_powerpc/include/bsp.h index 62e740272a..7d362bf406

[PATCH rtems-libbsd 5-freebsd-12 2/2] bsp/motorola_powerpc: Add dc, ukphy and legacy PCI support

2021-09-20 Thread chrisj
From: Chris Johns - Add the dc net dev to the BSP - Add the ukphy support - Add PCI Legacy bus support to the PowerPC Closes #4514 --- freebsd/sys/dev/dc/if_dc.c | 7 +++ freebsd/sys/dev/dc/if_dcreg.h | 7 +++ libbsd.py

[PATCH rtems-libbsd 5-freebsd-12 1/2] rtemsbsd/bus: Add PCI support to the nexus bus

2021-09-20 Thread chrisj
From: Chris Johns - Add PCI IO region support - Add support map buffers to PCI address space - Add BSP conditional IO space support. Some PC implementations have PCI IO space mapped differently to memory space and this needs to be reflected in the busspace. - Include bsp.h to pick per BSP

[PATCH] libcsupport/mount: Return the error correctly

2021-09-17 Thread chrisj
From: Chris Johns Closes #4507 --- cpukit/libcsupport/src/mount.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cpukit/libcsupport/src/mount.c b/cpukit/libcsupport/src/mount.c index a4f6423c03..2caa8099c1 100644 --- a/cpukit/libcsupport/src/mount.c +++ b/cpukit/libcsupport/src/mount.c

[PATCH] powerpc/motorola_powerpc: Map LibBSD bus space to the PCI base address

2021-09-17 Thread chrisj
From: Chris Johns --- bsps/powerpc/motorola_powerpc/include/bsp.h | 32 +++-- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/bsps/powerpc/motorola_powerpc/include/bsp.h b/bsps/powerpc/motorola_powerpc/include/bsp.h index af0e71471e..7d362bf406 100644 ---

V4 Zynq/ZynqMP UART driver

2021-09-15 Thread chrisj
Hi, This is version 4 of the UART driver changes. This change adds: - Wait for the TX FITO to empty and the TX state to be idle before setting the baudrate in the first open and setting the attributes. - Read any data in the RX FIFO. The change commit log highlights the purpose of the

[PATCH v4] arm/xilinx: Fix zynq-uart interrupt receive

2021-09-15 Thread chrisj
From: Chris Johns - Trigger on a single character entering the RX FIFO - Disable the RX timeout - Send up to a FIFO full of data --- bsps/include/dev/serial/zynq-uart.h | 1 + bsps/shared/dev/serial/zynq-uart-polled.c | 45 ++--- bsps/shared/dev/serial/zynq-uart.c| 78

[PATCH 2/2] tester/tftp: Fxi recovery of timed out TFTP sessions

2021-09-14 Thread chrisj
From: Chris Johns - Add support to retry the tftp session if the target has not started - Add target handlers for the test directives to allow recovery on error --- tester/rt/config.py | 21 - tester/rt/exe.py| 12 +++ tester/rt/gdb.py| 12

[PATCH 1/2] tester: Simplify the console data handling

2021-09-14 Thread chrisj
From: Chris Johns --- tester/rt/console.py | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/tester/rt/console.py b/tester/rt/console.py index 7e09bb9..13300da 100644 --- a/tester/rt/console.py +++ b/tester/rt/console.py @@ -109,7 +109,6 @@ class tty(console):

[PATCH] arm/xilinx: Fix zynq-uart interrupt receive

2021-09-09 Thread chrisj
From: Chris Johns - Trigger on a single character entering the RX FIFO - Disable the RX timeout - Send up to a FIFO full of data --- bsps/include/dev/serial/zynq-uart.h | 1 + bsps/shared/dev/serial/zynq-uart-polled.c | 21 ++-- bsps/shared/dev/serial/zynq-uart.c| 66

V2 : Zynq/ZynqMP UART driver

2021-09-09 Thread chrisj
Hi, I have tested this version on zynq and zynqmp hardware and I am not seeing any issues. I was seeing lost data with the serial port connected to FreeBSD 13 running ser2net. After careful review iof the driver I ended up spinning up a RPi3 with Ubunutu and ser2net it working as expected and

[PATCH] tester/zynqmp: Simpify the reasons to reset

2021-09-06 Thread chrisj
From: Chris Johns - Only reset if the bootloader error is hardware related. --- tester/rtems/testing/bsps/xilinx_zynqmp_ilp32_zu3eg.ini | 2 +- tester/rtems/testing/bsps/xilinx_zynqmp_lp64_zu3eg.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH v2 5/5] tester/tftp: Fix prptocol timeout handling

2021-09-06 Thread chrisj
From: Chris Johns - Change some of the notification messages --- tester/rt/tftp.py | 2 +- tester/rt/tftpserver.py | 28 ++-- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/tester/rt/tftp.py b/tester/rt/tftp.py index af5029a..49bdb29 100644 ---

[PATCH v2 4/5] tester: Count tester header errors

2021-09-06 Thread chrisj
From: Chris Johns - Remove the hard tester error and count the header errors. --- tester/rt/config.py | 2 +- tester/rt/report.py | 32 +++- tester/rt/test.py | 7 +-- 3 files changed, 29 insertions(+), 12 deletions(-) diff --git a/tester/rt/config.py

[PATCH v2 3/5] tester/telnet: Only reopen once a second

2021-09-06 Thread chrisj
From: Chris Johns - Limit the reopen to once a second - Make sure the socket is closed when reopening --- tester/rt/telnet.py | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tester/rt/telnet.py b/tester/rt/telnet.py index 4e5e84a..919aa86 100644 ---

[PATCH v2 2/5] misc/tftprpoxy: Correctly scale the protocol timeout

2021-09-06 Thread chrisj
From: Chris Johns - Fix data decoding - Fix get MAC call --- misc/tools/tftpproxy.py | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/misc/tools/tftpproxy.py b/misc/tools/tftpproxy.py index c0aebb0..a388912 100644 --- a/misc/tools/tftpproxy.py +++

[PATCH v2 1/5] tester/zynqmp: Limit the restarts to 3

2021-09-06 Thread chrisj
From: Chris Johns --- tester/rtems/testing/bsps/xilinx_zynqmp_lp64_zu3eg.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/tester/rtems/testing/bsps/xilinx_zynqmp_lp64_zu3eg.ini b/tester/rtems/testing/bsps/xilinx_zynqmp_lp64_zu3eg.ini index c4d091f..dff7d86 100644 ---

[PATCH 2/2] tester/zynqmp: Limit the restarts to 3

2021-09-05 Thread chrisj
From: Chris Johns --- tester/rtems/testing/bsps/xilinx_zynqmp_lp64_zu3eg.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/tester/rtems/testing/bsps/xilinx_zynqmp_lp64_zu3eg.ini b/tester/rtems/testing/bsps/xilinx_zynqmp_lp64_zu3eg.ini index c4d091f..dff7d86 100644 ---

[PATCH 1/2] tester: Count tester header errors

2021-09-05 Thread chrisj
From: Chris Johns - Remove the hard tester error and count the header errors. --- tester/rt/report.py | 17 + tester/rt/test.py | 7 +-- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/tester/rt/report.py b/tester/rt/report.py index 0e19edc..e808fce 100644

[PATCH] cpukit/mghttpd: Support all descriptors in select

2021-08-17 Thread chrisj
From: Chris Johns - Support all possible descriptors in a select call. Borrowed from Christain and his mDNS change in LibBSD - If select (or poll) fails pause for a bit rather than locking up in a hard loop --- cpukit/mghttpd/mongoose.c | 28 1 file changed, 28

[PATCH rtems] arm/xilinx: Fix zynq-uart interrupt receive

2021-08-17 Thread chrisj
From: Chris Johns - Trigger on a single character entering the RX FIFO - Disable the RX timeout - Send up to a FIFO full of data --- bsps/include/dev/serial/zynq-uart.h | 1 + bsps/shared/dev/serial/zynq-uart-polled.c | 18 ++- bsps/shared/dev/serial/zynq-uart.c| 66

Xilinx Zynq UART Driver Fixes

2021-08-17 Thread chrisj
Hi This patch fixes the receive on Zynq-7000 SoC hardware. My QEMU still does not want to receive anything but that could be my QEMU. I have tested it on Zynq custom hardware with a complete application and on a Zedboard running fileio. I would welcome Ultrascale testing and I will try the

[PATCH rtems-libbsd v4 12/19] kern: Add kernel trace support (KTR)

2021-08-04 Thread chrisj
From: Chris Johns Update #4475 --- README.md | 9 + freebsd/sys/kern/kern_intr.c | 6 ++ freebsd/sys/kern/kern_ktr.c| 14 +++--- freebsd/sys/kern/kern_synch.c | 10 ++

[PATCH rtems-libbsd v4 11/19] kern: Import kern_ktr.c

2021-08-04 Thread chrisj
From: Chris Johns Update #4475 --- freebsd/sys/kern/kern_ktr.c | 476 1 file changed, 476 insertions(+) create mode 100644 freebsd/sys/kern/kern_ktr.c diff --git a/freebsd/sys/kern/kern_ktr.c b/freebsd/sys/kern/kern_ktr.c new file mode 100644 index

[PATCH rtems-libbsd v4 09/19] kern: Import kern_prot.c fnd kern_resource.c for proc0

2021-08-04 Thread chrisj
From: Chris Johns Update #4475 --- freebsd/sys/kern/kern_prot.c | 2247 ++ freebsd/sys/kern/kern_resource.c | 1539 2 files changed, 3786 insertions(+) create mode 100644 freebsd/sys/kern/kern_prot.c create mode 100644

[PATCH rtems-libbsd v4 08/19] sys/kern: Add lockmgr support

2021-08-04 Thread chrisj
From: Chris Johns - See `man lockmgr` - Implement the lock_object and move the RTEMS mutex to that object - Add debug support to track the locks with gdb Update #4475 --- freebsd/sys/kern/subr_lock.c | 2 - freebsd/sys/sys/_lock.h | 10 +-

[PATCH rtems-libbsd v4 07/19] testsuite: Optionally allow all command in a shell

2021-08-04 Thread chrisj
From: Chris Johns Update #4475 --- testsuite/include/rtems/bsd/test/default-network-init.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/testsuite/include/rtems/bsd/test/default-network-init.h b/testsuite/include/rtems/bsd/test/default-network-init.h index ce1fc015..fffb739c 100644 ---

[PATCH rtems-libbsd v4 06/19] rtemsbsd: Catch timeout overflows

2021-08-04 Thread chrisj
From: Chris Johns Update #4475 --- rtemsbsd/rtems/rtems-kernel-timesupport.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/rtemsbsd/rtems/rtems-kernel-timesupport.c b/rtemsbsd/rtems/rtems-kernel-timesupport.c index ef14d1fa..bc2e7b9f 100644 ---

[PATCH rtems-libbsd v4 04/19] kern-symbols: Add symbols from the everything build set

2021-08-04 Thread chrisj
From: Chris Johns Update #4475 --- .../machine/rtems-bsd-kernel-namespace.h | 127 ++ 1 file changed, 127 insertions(+) diff --git a/rtemsbsd/include/machine/rtems-bsd-kernel-namespace.h b/rtemsbsd/include/machine/rtems-bsd-kernel-namespace.h index 70bcd29a..293c6115

[PATCH rtems-libbsd v4 02/19] waf: Fix clashing symbols in the user land symbols

2021-08-04 Thread chrisj
From: Chris Johns Update #4475 --- libbsd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libbsd.py b/libbsd.py index 09a1fbc4..2318e470 100644 --- a/libbsd.py +++ b/libbsd.py @@ -5019,7 +5019,7 @@ class dhcpcd(builder.Module): 'dhcpcd/compat/pselect.c',

[PATCH rtems-libbsd v4 03/19] sys/netinet/libalias: Fix symbols clashes

2021-08-04 Thread chrisj
From: Chris Johns Update #4475 --- freebsd/sys/netinet/libalias/alias_cuseeme.c | 3 +++ freebsd/sys/netinet/libalias/alias_dummy.c | 4 +++- freebsd/sys/netinet/libalias/alias_ftp.c | 3 +++ freebsd/sys/netinet/libalias/alias_irc.c | 3 +++ freebsd/sys/netinet/libalias/alias_nbt.c

[PATCH rtems-libbsd v4] NFSv4 Patches

2021-08-04 Thread chrisj
Hi, This the first group of patches for the NFSv4 port. This is the only part of the patches posted to devel, the complete series of patches can be downloaded from: https://ftp.rtems.org/pub/rtems/people/chrisj/nfsv4/patches/4/ I have pushed the patch series to my personal repo: https

[PATCH rtems-libbsd v3 4/4] kern-symbols: Add symbols from the everything build set

2021-07-27 Thread chrisj
From: Chris Johns Update #4475 --- .../machine/rtems-bsd-kernel-namespace.h | 127 ++ 1 file changed, 127 insertions(+) diff --git a/rtemsbsd/include/machine/rtems-bsd-kernel-namespace.h b/rtemsbsd/include/machine/rtems-bsd-kernel-namespace.h index 108709ce..76e76b58

[PATCH rtems-libbsd v3 3/4] sys/netinet/libalias: Fix symbols clashes

2021-07-27 Thread chrisj
From: Chris Johns Update #4475 --- freebsd/sys/netinet/libalias/alias_cuseeme.c | 3 +++ freebsd/sys/netinet/libalias/alias_dummy.c | 4 +++- freebsd/sys/netinet/libalias/alias_ftp.c | 3 +++ freebsd/sys/netinet/libalias/alias_irc.c | 3 +++ freebsd/sys/netinet/libalias/alias_nbt.c

[PATCH rtems-libbsd v3 2/4] waf: Fix clashing symbols in the user land symbols

2021-07-27 Thread chrisj
From: Chris Johns Update #4475 --- libbsd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libbsd.py b/libbsd.py index 09a1fbc4..2318e470 100644 --- a/libbsd.py +++ b/libbsd.py @@ -5019,7 +5019,7 @@ class dhcpcd(builder.Module): 'dhcpcd/compat/pselect.c',

[PATCH rtems-libbsd v2 4/4] kern-symbols: Add symbols from the everything build set

2021-07-27 Thread chrisj
From: Chris Johns Update #4475 --- .../machine/rtems-bsd-kernel-namespace.h | 127 ++ 1 file changed, 127 insertions(+) diff --git a/rtemsbsd/include/machine/rtems-bsd-kernel-namespace.h b/rtemsbsd/include/machine/rtems-bsd-kernel-namespace.h index 108709ce..76e76b58

[PATCH rtems-libbsd v2 3/4] sys/netinet/libalias: Fix symbols clashes

2021-07-27 Thread chrisj
From: Chris Johns Update #4475 --- freebsd/sys/netinet/libalias/alias_cuseeme.c | 3 +++ freebsd/sys/netinet/libalias/alias_dummy.c | 4 +++- freebsd/sys/netinet/libalias/alias_ftp.c | 3 +++ freebsd/sys/netinet/libalias/alias_irc.c | 3 +++ freebsd/sys/netinet/libalias/alias_nbt.c

[PATCH rtems-libbsd v2 2/4] waf: Fix clashing symbols in the user land symbols

2021-07-27 Thread chrisj
From: Chris Johns Update #4475 --- libbsd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libbsd.py b/libbsd.py index 09a1fbc4..2318e470 100644 --- a/libbsd.py +++ b/libbsd.py @@ -5019,7 +5019,7 @@ class dhcpcd(builder.Module): 'dhcpcd/compat/pselect.c',

[PATCH rtems-libbsd 7/7] kern: Add kernel trace support (KTR)

2021-07-27 Thread chrisj
From: Chris Johns Update #4475 --- README.md | 9 + freebsd/sys/kern/kern_intr.c | 6 ++ freebsd/sys/kern/kern_ktr.c| 14 +++--- freebsd/sys/kern/kern_synch.c | 10 ++

[PATCH rtems-libbsd 6/7] kern: Import kern_ktr.c

2021-07-27 Thread chrisj
From: Chris Johns Update #4475 --- freebsd/sys/kern/kern_ktr.c | 476 1 file changed, 476 insertions(+) create mode 100644 freebsd/sys/kern/kern_ktr.c diff --git a/freebsd/sys/kern/kern_ktr.c b/freebsd/sys/kern/kern_ktr.c new file mode 100644 index

[PATCH rtems-libbsd 5/7] kern: Add a proc0

2021-07-27 Thread chrisj
From: Chris Johns - Provides the thread's proc pointer and with that access to creds Update #4475 --- freebsd/sys/kern/init_main.c | 4 +++ freebsd/sys/kern/kern_prot.c | 45 ++-- freebsd/sys/kern/kern_resource.c | 12 +++ freebsd/sys/sys/proc.h

[PATCH rtems-libbsd 4/7] kern: Import kern_prot.c fnd kern_resource.c for proc0

2021-07-27 Thread chrisj
From: Chris Johns Update #4475 --- freebsd/sys/kern/kern_prot.c | 2247 ++ freebsd/sys/kern/kern_resource.c | 1539 2 files changed, 3786 insertions(+) create mode 100644 freebsd/sys/kern/kern_prot.c create mode 100644

[PATCH rtems-libbsd 3/7] sys/kern: Add lockmgr support

2021-07-27 Thread chrisj
From: Chris Johns - See `man lockmgr` - Implement the lock_object and move the RTEMS mutex to that object - Add debug support to track the locks with gdb Update #4475 --- freebsd/sys/sys/_lock.h | 10 +- freebsd/sys/sys/_lockmgr.h| 6 +

[PATCH rtems-libbsd 1/7] rtemsbsd: Catch timeout overflows

2021-07-27 Thread chrisj
From: Chris Johns Update #4475 --- rtemsbsd/rtems/rtems-kernel-timesupport.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/rtemsbsd/rtems/rtems-kernel-timesupport.c b/rtemsbsd/rtems/rtems-kernel-timesupport.c index ef14d1fa..5d290d66 100644 ---

[PATCH rtems-libbsd 2/7] testsuite: Optionally allow all command in a shell

2021-07-27 Thread chrisj
From: Chris Johns Update #4475 --- testsuite/include/rtems/bsd/test/default-network-init.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/testsuite/include/rtems/bsd/test/default-network-init.h b/testsuite/include/rtems/bsd/test/default-network-init.h index ce1fc015..fffb739c 100644 ---

libbsd: Add kerel trace support

2021-07-27 Thread chrisj
This patch set addis trace support, a lockmgr and proc0 to libbsd. The patch set is part of adding NFSv4 to libbsd. This involves adding VFS and refactoring the syscall interfaces and tracing is an important part of the long term maintenance of these features. Part of this is adding a proc0.

[PATCH rtems-libbsd.nfs 4/4] kern-symbols: Add symbols from the everything build set

2021-07-27 Thread chrisj
From: Chris Johns - Minor fix to rtems-kern-symbols Update #4475 --- rtems-kern-symbols| 2 +- .../machine/rtems-bsd-kernel-namespace.h | 127 ++ 2 files changed, 128 insertions(+), 1 deletion(-) diff --git a/rtems-kern-symbols

[PATCH rtems-libbsd.nfs 2/4] waf: Fix clashing symbols in the user land symbols

2021-07-27 Thread chrisj
From: Chris Johns Update #4475 --- libbsd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libbsd.py b/libbsd.py index 09a1fbc4..2318e470 100644 --- a/libbsd.py +++ b/libbsd.py @@ -5019,7 +5019,7 @@ class dhcpcd(builder.Module): 'dhcpcd/compat/pselect.c',

[PATCH rtems-libbsd.nfs 3/4] sys/netinet/libalias: Fix symbols clashes

2021-07-27 Thread chrisj
From: Chris Johns Update #4475 --- freebsd/sys/netinet/libalias/alias_cuseeme.c | 3 +++ freebsd/sys/netinet/libalias/alias_dummy.c | 4 +++- freebsd/sys/netinet/libalias/alias_ftp.c | 3 +++ freebsd/sys/netinet/libalias/alias_irc.c | 3 +++ freebsd/sys/netinet/libalias/alias_nbt.c

[PATCH rtems.git v2] bsp: Remove fatal from exit(0). Add extended heap error output

2021-07-21 Thread chrisj
From: Chris Johns --- bsps/shared/start/bspfatal-default.c | 83 +++- 1 file changed, 70 insertions(+), 13 deletions(-) diff --git a/bsps/shared/start/bspfatal-default.c b/bsps/shared/start/bspfatal-default.c index 0289dbda63..84ca7e5cee 100644 ---

[PATCH] bsp: Remove fatal from exit(0). Add extended heap error output

2021-07-20 Thread chrisj
From: Chris Johns --- bsps/shared/start/bspfatal-default.c | 53 +--- 1 file changed, 49 insertions(+), 4 deletions(-) diff --git a/bsps/shared/start/bspfatal-default.c b/bsps/shared/start/bspfatal-default.c index 0289dbda63..5e93b21b04 100644 ---

[PATCH v3 2/2] build: Fix the motorola_powerpc default baudrate

2021-07-14 Thread chrisj
From: Chris Johns --- spec/build/bsps/optconsolebaud.yml | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/spec/build/bsps/optconsolebaud.yml b/spec/build/bsps/optconsolebaud.yml index 2658abbff8..4b0869beca 100644 --- a/spec/build/bsps/optconsolebaud.yml +++

[PATCH v2] build: Use BSP family for options

2021-07-14 Thread chrisj
From: Chris Johns - Optionally add support for 'default-by-family' to allow option to be set by a family and so all related BSPs Close #4468 --- wscript | 36 +++- 1 file changed, 23 insertions(+), 13 deletions(-) diff --git a/wscript b/wscript index

[PATCH] tester: Add Versal VCK190 eval board TFTP support

2021-07-01 Thread chrisj
From: Chris Johns --- .../testing/bsps/xilinx_versal_vck190.ini | 43 +++ 1 file changed, 43 insertions(+) create mode 100644 tester/rtems/testing/bsps/xilinx_versal_vck190.ini diff --git a/tester/rtems/testing/bsps/xilinx_versal_vck190.ini

[PATCH] covoar: Fix errors building on FreeBSD and clang

2021-06-30 Thread chrisj
From: Chris Johns - The member variable `path_` cannot be a reference and initialised to a const char* type input. To do so would require there is a temporary with an unspecified life time. --- tester/covoar/AddressToLineMapper.h | 2 +- tester/covoar/Target_aarch64.h | 2 +- 2 files

[PATCH] defaults.mc: Remove any checks for objdump and objcopy

2021-06-30 Thread chrisj
From: Chris Johns - FreeBSD is removing any dependence on binutils and release 13 has remove objdump. This is fine as we build our own version. --- source-builder/defaults.mc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source-builder/defaults.mc

[PATCH 1/2] Fix the linux specific include

2021-05-20 Thread chrisj
From: Chris Johns --- common/latex.py | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/latex.py b/common/latex.py index a1b3917..17d3015 100644 --- a/common/latex.py +++ b/common/latex.py @@ -4,10 +4,6 @@ import os import re -try: -from distro import

[PATCH 2/2] Fix the bibtex extension configure test

2021-05-20 Thread chrisj
From: Chris Johns --- common/waf.py | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/common/waf.py b/common/waf.py index 3806209..fa9aecb 100644 --- a/common/waf.py +++ b/common/waf.py @@ -181,10 +181,12 @@ def check_sphinx_extension(ctx, extension): def

[PATCH 2/2] Fix the bibtex extension configure test

2021-05-10 Thread chrisj
From: Chris Johns --- common/waf.py | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/common/waf.py b/common/waf.py index 3806209..fa9aecb 100644 --- a/common/waf.py +++ b/common/waf.py @@ -181,10 +181,12 @@ def check_sphinx_extension(ctx, extension): def

[PATCH 1/2] Fix the linux specific include

2021-05-10 Thread chrisj
From: Chris Johns --- common/latex.py | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/latex.py b/common/latex.py index a1b3917..17d3015 100644 --- a/common/latex.py +++ b/common/latex.py @@ -4,10 +4,6 @@ import os import re -try: -from distro import

[5 PATCH] powerpc/motorola_power: Place any common data in the .bss section

2021-02-26 Thread chrisj
From: Chris Johns - It seems the compiler how defaults to -fcommon and this means some uninitialised data is ignored. Closes #4266 --- bsps/powerpc/motorola_powerpc/bootloader/ppcboot.lds | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git

[5 PATCH] powerpc/motorola_power: Link all text sections into the executable image

2021-02-23 Thread chrisj
From: Chris Johns - The change to building all code with code and data sections means we have a section per function. Make sure all functions are placed in the text section. Closes #4266 --- bsps/powerpc/motorola_powerpc/bootloader/ppcboot.lds | 2 +- 1 file changed, 1 insertion(+), 1

[libbsd PATCH v2 2/2] bsp/motorola_powerpc: Add dc and ukphy support

2021-02-16 Thread chrisj
From: Chris Johns - Add the dc net dev to the BSP - Add the ukphy support Closes # 4246 --- freebsd/sys/dev/dc/if_dc.c| 7 freebsd/sys/dev/dc/if_dcreg.h | 7 rtemsbsd/include/bsp/nexus-devices.h | 4 +++

[libbsd PATCH v2 1/2] rtemsbsd/bus: Add PCI support to the nexus bus

2021-02-16 Thread chrisj
From: Chris Johns - Add PCI IO region support - Add support map buffers to PCI address space Closes #4245 --- rtemsbsd/include/machine/bus.h| 282 -- rtemsbsd/rtems/rtems-kernel-bus-dma.c | 5 +- rtemsbsd/rtems/rtems-kernel-nexus.c | 50 - 3 files

[5 PATCH] Update motorola_power to irq-generic interrupt management

2021-02-15 Thread chrisj
From: Chris Johns - Add support to the BSP to enable irq-generic management - Update the powerpc shared irq code to support irq-generic. This is an opt in option for existing powerpc bsps. This change should be simpler now - Fix a number of issues in ISA IRQ controller handling by porting

[6-freebsd-12 PATCH v2 2/2] bsp/motorola_powerpc: Add dc and ukphy support

2021-02-15 Thread chrisj
From: Chris Johns - Add the dc net dev to the BSP - Add the ukphy support Closes # 4246 --- freebsd/sys/dev/dc/if_dc.c| 7 freebsd/sys/dev/dc/if_dcreg.h | 7 rtemsbsd/include/bsp/nexus-devices.h | 4 +++

[6-freebsd-12 PATCH v2 1/2] rtemsbsd/bus: Add PCI support to the nexus bus

2021-02-15 Thread chrisj
From: Chris Johns - Add PCI IO region support - Add support map buffers to PCI address space Closes #4245 --- rtemsbsd/include/machine/bus.h| 124 ++ rtemsbsd/rtems/rtems-kernel-bus-dma.c | 5 +- rtemsbsd/rtems/rtems-kernel-nexus.c | 23 +++-- 3 files

[6-freebsd-12 PATCH 2/2] bsp/motorola_powerpc: Add dc and ukphy support

2021-02-15 Thread chrisj
From: Chris Johns - Add the dc net dev to the BSP - Add the ukphy support Closes # 4246 --- freebsd/sys/dev/dc/if_dc.c| 10 -- freebsd/sys/dev/dc/if_dcreg.h | 7 rtemsbsd/include/bsp/nexus-devices.h | 4 +++

[6-freebsd-12 PATCH 1/2] rtemsbsd/bus: Add PCI support to the nexus bus

2021-02-15 Thread chrisj
From: Chris Johns - Add PCI IO region support - Add support map buffers to PCI address space Closes #4245 --- rtemsbsd/include/machine/bus.h| 124 ++ rtemsbsd/rtems/rtems-kernel-bus-dma.c | 5 +- rtemsbsd/rtems/rtems-kernel-nexus.c | 23 +++-- 3 files

[PATCH 3/4] powerpc/motorola_powerpc: Enable bus PCI support in LibBSD

2021-02-15 Thread chrisj
From: Chris Johns Updates #4245 --- bsps/powerpc/motorola_powerpc/include/bsp.h | 4 1 file changed, 4 insertions(+) diff --git a/bsps/powerpc/motorola_powerpc/include/bsp.h b/bsps/powerpc/motorola_powerpc/include/bsp.h index 62e740272a..af0e71471e 100644 ---

[PATCH 4/4] powerpc/motorola_powerpc: Add cache coherent memory to the allocator

2021-02-15 Thread chrisj
From: Chris Johns Updates #4245 Updates #4243 --- bsps/powerpc/motorola_powerpc/start/bspstart.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/bsps/powerpc/motorola_powerpc/start/bspstart.c b/bsps/powerpc/motorola_powerpc/start/bspstart.c index ef8418e2c6..a781297565 100644 ---

[PATCH 2/4] powerpc/io: Make [out/in] le and be calls conditional

2021-02-15 Thread chrisj
From: Chris Johns - These calls clash with the Linux IO header in LibBSD. Making these conditional here means BSPs build and the imported Linux header is untouched. Updates #4245 --- bsps/powerpc/include/libcpu/io.h | 8 1 file changed, 8 insertions(+) diff --git

[PATCH 1/4] powerpc/shared: Fix warnings in i8259 PIC code.

2021-02-15 Thread chrisj
From: Chris Johns --- bsps/powerpc/shared/irq/i8259.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/bsps/powerpc/shared/irq/i8259.c b/bsps/powerpc/shared/irq/i8259.c index 6a80e24946..37cbc360de 100644 --- a/bsps/powerpc/shared/irq/i8259.c +++ b/bsps/powerpc/shared/irq/i8259.c @@

[PATCH 3/3] powerpc/shared: Fix warnings

2021-02-12 Thread chrisj
From: Chris Johns --- bsps/powerpc/shared/vme/bspVmeDmaList.c | 3 ++- bsps/powerpc/shared/vme/vmeTsi148.c | 15 +-- bsps/powerpc/shared/vme/vmeUniverse.c | 8 +--- 3 files changed, 16 insertions(+), 10 deletions(-) diff --git a/bsps/powerpc/shared/vme/bspVmeDmaList.c

[PATCH 2/3] powerpc/motorola_powerpc: Fix tm27 warnings

2021-02-12 Thread chrisj
From: Chris Johns --- bsps/powerpc/motorola_powerpc/include/tm27.h | 24 +--- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/bsps/powerpc/motorola_powerpc/include/tm27.h b/bsps/powerpc/motorola_powerpc/include/tm27.h index 4d616cb3ed..15e66f2a81 100644 ---

[PATCH 1/3] score: Fix warning in thread queue ops

2021-02-12 Thread chrisj
From: Chris Johns --- cpukit/score/src/threadqops.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cpukit/score/src/threadqops.c b/cpukit/score/src/threadqops.c index ef20431178..d6ba9dad57 100644 --- a/cpukit/score/src/threadqops.c +++ b/cpukit/score/src/threadqops.c

[PATCH v2] Update motorola_power to irq-generic interrupt management

2021-02-12 Thread chrisj
From: Chris Johns - Add support to the BSP to enable irq-generic management - Update the powerpc shared irq code to support irq-generic. This is an option in option for existing powerpc bsps. This change should be simpler now - Fix a number of issues in ISA IRQ controller handling by

[PATCH] Update motorola_power to irq-generic interrupt management

2021-02-12 Thread chrisj
From: Chris Johns - Add support to the BSP to enable irq-generic management - Update the powerpc shared irq code to support irq-generic. This is an option in option for existing powerpc bsps. This change should be simpler now - Fix a number of issues in ISA IRQ controller handling by

[PATCH v2] libcsupport: Add sbrk greedy support to consume all sbrk memory

2021-02-08 Thread chrisj
From: Chris Johns - Move the heap sbrk code into a separate routnine. - Update heap and workspace greedy allocators to use the common sbrk greedy support. Closes #3982 --- cpukit/Makefile.am| 1 + cpukit/include/rtems/malloc.h | 13

[PATCH] libcsupport: Add sbrk greedy support to consume all sbrk memory

2021-02-08 Thread chrisj
From: Chris Johns - Move the heap sbrk code into a separate routnine. - Update heap and workspace greedy allocators to use the common sbrk greedy support. Closes #3982 --- cpukit/Makefile.am| 1 + cpukit/include/rtems/malloc.h | 13 +++

[PATCH] libcsupport: Have greedy allocations use consume extended memory

2021-02-07 Thread chrisj
From: Chris Johns - Call the heap extend handler until all memory has been requested. Closes #3982 --- cpukit/libcsupport/src/rtems_heap_greedy.c | 12 1 file changed, 12 insertions(+) diff --git a/cpukit/libcsupport/src/rtems_heap_greedy.c

[RTEMS 4.11 PATCH] powerpc/shared: ISA bus bridge fails to enable the openpic irq

2021-02-07 Thread chrisj
From: Chris Johns - The call to enable the openpic irq for the ISA bridge fails because the IRQ used is offset by the ISA bus signals and the openpic call expects an IRQ relative to its signals. - Add the MVME 2600/2700 to the list of boards with an ISA bridge. Closes #4235 ---

[RTEMS 5 PATCH v2] powerpc/shared: ISA bus bridge fails to enable the openpic irq

2021-02-07 Thread chrisj
From: Chris Johns - The call to enable the openpic irq for the ISA bridge fails because the IRQ used is offset by the ISA bus signals and the openpic call expects an IRQ relative to its signals. - Add the MVME 2600/2700 to the list of boards with an ISA bridge. Closes #4233 ---

[RTEMS 5 PATCH] bsp/motorola_powerp: Print RTEMS_VERSION from the bootloader

2021-02-07 Thread chrisj
From: Chris Johns Close #4234 --- bsps/powerpc/motorola_powerpc/bootloader/misc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bsps/powerpc/motorola_powerpc/bootloader/misc.c b/bsps/powerpc/motorola_powerpc/bootloader/misc.c index 587bcffcff..ff2e3ff590 100644 ---

  1   2   3   4   5   >