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

2024-03-25 Thread berndmoessner80
From: Bernd Moessner --- bsps/include/bsp/irq-generic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsps/include/bsp/irq-generic.h b/bsps/include/bsp/irq-generic.h index 5ed9cac688..31f345486f 100644 --- a/bsps/include/bsp/irq-generic.h +++ b/bsps/include/bsp/irq-generic.

[PATCH rtems-lwip] Add C++ include guard

2024-03-25 Thread berndmoessner80
From: Bernd Moessner --- rtemslwip/include/netstart.h | 8 1 file changed, 8 insertions(+) diff --git a/rtemslwip/include/netstart.h b/rtemslwip/include/netstart.h index 807183a..82cefce 100644 --- a/rtemslwip/include/netstart.h +++ b/rtemslwip/include/netstart.h @@ -30,6 +30,10 @@ #i

[PATCH rtems6 1/1] xparameters.h: fix typo in comment

2024-01-07 Thread berndmoessner80
From: Bernd Moessner --- bsps/include/xil/xparameters.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsps/include/xil/xparameters.h b/bsps/include/xil/xparameters.h index b665810643..9d4d95eacb 100644 --- a/bsps/include/xil/xparameters.h +++ b/bsps/include/xil/xparameters.

[PATCH rtems6 0/1] Fix comment in xparameters.h

2024-01-07 Thread berndmoessner80
From: Bernd Moessner See patch Bernd Moessner (1): xparameters.h: fix typo in comment bsps/include/xil/xparameters.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.34.1 ___ devel mailing list devel@rtems.org http://lists.rtems.org/ma

[PATCH rtems6 - v2 05/16] flashdev: Add missing default case

2024-01-07 Thread berndmoessner80
From: Bernd Moessner Updates #4981 --- cpukit/dev/flash/flashdev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cpukit/dev/flash/flashdev.c b/cpukit/dev/flash/flashdev.c index 27edead968..8bd3d11246 100644 --- a/cpukit/dev/flash/flashdev.c +++ b/cpukit/dev/flash/flashdev.c @@ -390,6 +39

[PATCH rtems6 - v2 16/16] flashdev: restrict flash writes

2024-01-07 Thread berndmoessner80
From: Bernd Moessner Disallow writes that do not match alignment / req. length This feature applies if the min write block size is != 0. Closes #4981 --- cpukit/dev/flash/flashdev.c | 11 +++ testsuites/libtests/flashdev01/init.c | 24 +++- 2 files changed

[PATCH rtems6 - v2 15/16] flashdev: Refactor IOCTL defines into enum

2024-01-07 Thread berndmoessner80
From: Bernd Moessner Updates #4981 --- cpukit/include/dev/flash/flashdev.h | 24 +--- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/cpukit/include/dev/flash/flashdev.h b/cpukit/include/dev/flash/flashdev.h index ac21f883e8..d59f5e92e5 100644 --- a/cpukit/in

[PATCH rtems6 - v2 14/16] flashdev: revise region creation

2024-01-07 Thread berndmoessner80
From: Bernd Moessner Create / update region only if it is aligned to erase size Updates #4981 --- cpukit/dev/flash/flashdev.c | 14 ++ testsuites/libtests/flashdev01/init.c | 12 2 files changed, 26 insertions(+) diff --git a/cpukit/dev/flash/flashdev.c b/cpu

[PATCH rtems6 - v2 13/16] flashdev: fix erase function

2024-01-07 Thread berndmoessner80
From: Bernd Moessner Erase function must take erase size and alignment into account Updates #4981 --- cpukit/dev/flash/flashdev.c | 49 ++- testsuites/libtests/flashdev01/init.c | 18 +- 2 files changed, 65 insertions(+), 2 deletions(-) diff --git a/cp

[PATCH rtems6 - v2 11/16] flashdev: extend testsuite

2024-01-07 Thread berndmoessner80
From: Bernd Moessner Updates #4981 --- testsuites/libtests/flashdev01/init.c | 8 +++- .../libtests/flashdev01/test_flashdev.c | 41 --- .../libtests/flashdev01/test_flashdev.h | 6 ++- 3 files changed, 38 insertions(+), 17 deletions(-) diff --git a/testsui

[PATCH rtems6 - v2 12/16] flashdev: Add erase info to page info

2024-01-07 Thread berndmoessner80
From: Bernd Moessner Updates #4981 --- cpukit/dev/flash/flashdev.c | 8 ++- cpukit/include/dev/flash/flashdev.h | 18 ++- cpukit/libmisc/shell/main_flashdev.c | 18 --- testsuites/libtests/flashdev01/init.c | 18 ++- .../libtests/flashdev

[PATCH rtems6 - v2 10/16] flashdev: extend testsuite

2024-01-07 Thread berndmoessner80
From: Bernd Moessner Allow testsuite to set the min. write block size Updates #4981 --- testsuites/libtests/flashdev01/init.c | 191 +++--- .../libtests/flashdev01/test_flashdev.c | 13 +- .../libtests/flashdev01/test_flashdev.h | 2 +- 3 files changed, 133 in

[PATCH rtems6 - v2 09/16] flashdev: Refactor macro name

2024-01-07 Thread berndmoessner80
From: Bernd Moessner The major change in this patch is that it refactors RTEMS_FLASHDEV_IOCTL_GET_WRITE_BLOCK_SIZE to become RTEMS_FLASHDEV_IOCTL_GET_MIN_WRITE_BLOCK_SIZE. Apart from that this patch fixes comments and aligns function names. There is no change in the behaviour of the code introd

[PATCH rtems6 - v2 08/16] flashdev: add function to deregister

2024-01-07 Thread berndmoessner80
From: Bernd Moessner In addition to that update the test case Updates #4981 --- cpukit/dev/flash/flashdev.c | 12 ++ cpukit/include/dev/flash/flashdev.h | 14 +++ testsuites/libtests/flashdev01/init.c | 15 ++-- .../libtests/flashdev01

[PATCH rtems6 - v2 06/16] flashdev.c: return error in case neither

2024-01-07 Thread berndmoessner80
From: Bernd Moessner Updates #4981 --- cpukit/dev/flash/flashdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpukit/dev/flash/flashdev.c b/cpukit/dev/flash/flashdev.c index 8bd3d11246..7bc13ed70a 100644 --- a/cpukit/dev/flash/flashdev.c +++ b/cpukit/dev/flash/flashdev.c

[PATCH rtems6 - v2 04/16] flashdev: Align IOCTL and shell function

2024-01-07 Thread berndmoessner80
From: Bernd Moessner Updates #4981 --- cpukit/libmisc/shell/main_flashdev.c | 36 ++-- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/cpukit/libmisc/shell/main_flashdev.c b/cpukit/libmisc/shell/main_flashdev.c index 969b0687d2..516c77ae27 100644 --- a/cp

[PATCH rtems6 - v2 02/16] flashdev: Unify IOCTL macro names

2024-01-07 Thread berndmoessner80
From: Bernd Moessner Updates #4981 --- cpukit/dev/flash/flashdev.c | 16 cpukit/include/dev/flash/flashdev.h | 16 cpukit/libmisc/shell/main_flashdev.c | 12 ++-- testsuites/libtests/flashdev01/init.c | 16 4 files changed,

[PATCH rtems6 - v2 03/16] flashdev: Align IOCTL function and macro

2024-01-07 Thread berndmoessner80
From: Bernd Moessner Updates #4981 --- cpukit/dev/flash/flashdev.c | 72 +-- cpukit/include/dev/flash/flashdev.h | 12 ++-- .../libtests/flashdev01/test_flashdev.c | 36 +- 3 files changed, 60 insertions(+), 60 deletions(-) diff --git a/

[PATCH rtems6 - v2 07/16] flashdev: fix wrong offset assignment

2024-01-07 Thread berndmoessner80
From: Bernd Moessner When the region feature is active, flashdev assumes that a relative address is provided. It computes the abs. address and carries out the read / write. However, in this case it must not assign the abs. address to iop->offset. The relative address is required here to allow new

[PATCH rtems6 - v2 01/16] flashdev.h: Add missing C++ include guards

2024-01-07 Thread berndmoessner80
From: Bernd Moessner Updates #4981 --- cpukit/include/dev/flash/flashdev.h | 9 + 1 file changed, 9 insertions(+) diff --git a/cpukit/include/dev/flash/flashdev.h b/cpukit/include/dev/flash/flashdev.h index d1dc08a5c4..6759357206 100644 --- a/cpukit/include/dev/flash/flashdev.h +++ b/c

[PATCH rtems6 - v2 00/16] Overwork flashdev

2024-01-07 Thread berndmoessner80
From: Bernd Moessner Hi, here`s the revised patch set. Patches 1-5 have not been disputed and are therefore untouched. I only added the issue reference to the comment line. I`ve choosen to not rename "min. write block size" and "region". In addition to that I kept the "region" mechanics i.e. h

[PATCH rtems-lwip 1/1] Add ZYNQ 7000 support

2024-01-06 Thread berndmoessner80
From: Bernd Moessner This patch adds support for the Xilinx ZYNQ 7000 series. Please note that this patch also affects ZYNQ Ultrascale+ as I`ve moved some functions from zynqmp/xil_shims.c to xilinx/freertos.c and xilinx/xscugic.c to share them between both families. --- defs/bsps/aarch64/xil

[PATCH rtems-lwip 0/1] Add ZYNQ 7000 Support

2024-01-06 Thread berndmoessner80
From: Bernd Moessner This patch adds support for the ZYNQ 7000 Family. It targets the AVNET Picozed board, but the other boards in RTEMS can be added in a similar way. The patch also affects the ZYNQ Ultrascale+ Family as I have moved some code from xil_shims.c to a location which can be share

[PATCH rtems-lwip - v3 1/2] xemacpsif: fix compiler warnings

2024-01-05 Thread berndmoessner80
From: Bernd Moessner The compiler issues a couple of warnings as the Xilinx code omits to cast pointers ip_addr_t to the required ip4_addr_t or ip6_addr_t type. Note, ip_addr_t can hold ip4_addr_t and ip6_addr_t. Therefore, the complaints by GCC are correct, but do not indicate a major bug. --

[PATCH rtems-lwip - v3 2/2] xadapter: fix compiler warnings

2024-01-05 Thread berndmoessner80
From: Bernd Moessner This fix addresses two issues: 1) Wrong format specifier is used to print a 64bit address pointer 2) The compiler issues a couple of warnings as the Xilinx code omits to cast pointers ip_addr_t to the required ip4_addr_t or ip6_addr_t tpye. Note, ip_addr_t can hold ip4_add

[PATCH rtems-lwip - v3 0/2] Finalize LWIP Clean up

2024-01-05 Thread berndmoessner80
From: Bernd Moessner As kinsey recommended: * removed unneccassry cast and __rtems__ gate * changed function signature of xemacpsif_ip6_addr_ismulticast Bernd Moessner (2): xemacpsif: fix compiler warnings xadapter: fix compiler warnings .../src/contrib/ports/xilinx/netif/xadapter.c | 13 +

[PATCH rtems-lwip - v2 2/2] xadapter: fix compiler warnings

2024-01-05 Thread berndmoessner80
From: Bernd Moessner This fix addresses two issues: 1) Wrong format specifier is used to print a 64bit address pointer 2) The compiler issues a couple of warnings as the Xilinx code omits to cast pointers ip_addr_t to the required ip4_addr_t or ip6_addr_t tpye. Note, ip_addr_t can hold ip4_add

[PATCH rtems-lwip - v2 0/2] Finalize LWIP Clean up

2024-01-05 Thread berndmoessner80
From: Bernd Moessner This finalizes the lwip clean up patch series. As discussed I've merged patches which targeted the same file and added __rtems__ gates when required. Bernd Moessner (2): xemacpsif: fix compiler warnings xadapter: fix compiler warnings .../src/contrib/ports/xilinx/neti

[PATCH rtems-lwip - v2 1/2] xemacpsif: fix compiler warnings

2024-01-05 Thread berndmoessner80
From: Bernd Moessner The compiler issues a couple of warnings as the Xilinx code omits to cast pointers ip_addr_t to the required ip4_addr_t or ip6_addr_t tpye. Note, ip_addr_t can hold ip4_addr_t and ip6_addr_t. Therefore, the complaints by GCC are correct, but do not indicate a major bug. --

[PATCH rtems 06/14] Flashdev: Make mutex name more generic

2024-01-04 Thread berndmoessner80
From: Bernd Moessner --- cpukit/dev/flash/flashdev.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cpukit/dev/flash/flashdev.c b/cpukit/dev/flash/flashdev.c index 8bd3d11246..0020e8d2c1 100644 --- a/cpukit/dev/flash/flashdev.c +++ b/cpukit/dev/flash/flashdev.c @@ -34,6

[PATCH rtems-lwip - v1 09/11] FIX incompatible pointer warning

2024-01-04 Thread berndmoessner80
From: Bernd Moessner --- .../contrib/ports/xilinx/netif/xemacpsif.c| 21 +++ 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/embeddedsw/ThirdParty/sw_services/lwip211/src/contrib/ports/xilinx/netif/xemacpsif.c b/embeddedsw/ThirdParty/sw_services/lwip211/src/

[PATCH rtems 09/14] FIX: Regions must be aligned with erase size

2024-01-04 Thread berndmoessner80
From: Bernd Moessner --- cpukit/dev/flash/flashdev.c | 35 ++ testsuites/libtests/flashdev01/init.c | 66 --- 2 files changed, 95 insertions(+), 6 deletions(-) diff --git a/cpukit/dev/flash/flashdev.c b/cpukit/dev/flash/flashdev.c index 2e6a2e3c19..

[PATCH rtems-lwip 02/10] FIX: add library search path to allow lwip being installed aside the RTEMS installation

2024-01-04 Thread berndmoessner80
From: Bernd Moessner --- lwip.py | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lwip.py b/lwip.py index bd743a1..65f1ead 100644 --- a/lwip.py +++ b/lwip.py @@ -137,9 +137,10 @@ def build(bld): includes=' '.join(test_app_incl)) lib_path = os.pat

[PATCH rtems-lwip - v1 10/11] FIX compiler warning due to macro redefinition

2024-01-04 Thread berndmoessner80
From: Bernd Moessner --- rtemslwip/common/rtems_lwip_io.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/rtemslwip/common/rtems_lwip_io.c b/rtemslwip/common/rtems_lwip_io.c index ee34774..2fed874 100644 --- a/rtemslwip/common/rtems_lwip_io.c +++ b/rtemslwip/common/rtems_lwip_io.c @@ -31,8

[PATCH rtems 08/14] Flashdev: Add IOCTL to get the erase size

2024-01-04 Thread berndmoessner80
From: Bernd Moessner --- cpukit/dev/flash/flashdev.c | 24 +++ cpukit/include/dev/flash/flashdev.h | 21 + cpukit/libmisc/shell/main_flashdev.c | 28 + testsuites/libtests/flashdev01/init.c | 14 ++--- .../l

[PATCH rtems-lwip - v1 02/11] FIX: add library search path to allow lwip being installed aside the RTEMS installation

2024-01-04 Thread berndmoessner80
From: Bernd Moessner --- lwip.py | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lwip.py b/lwip.py index bd743a1..65f1ead 100644 --- a/lwip.py +++ b/lwip.py @@ -137,9 +137,10 @@ def build(bld): includes=' '.join(test_app_incl)) lib_path = os.pat

[PATCH rtems-lwip 03/10] Clean up: remove non-existent include paths

2024-01-04 Thread berndmoessner80
From: Bernd Moessner --- defs/bsps/aarch64/xilinx_zynqmp_base.json | 2 -- 1 file changed, 2 deletions(-) diff --git a/defs/bsps/aarch64/xilinx_zynqmp_base.json b/defs/bsps/aarch64/xilinx_zynqmp_base.json index c18b339..3e47434 100644 --- a/defs/bsps/aarch64/xilinx_zynqmp_base.json +++ b/defs/

[PATCH rtems-lwip - v1 11/11] FIX wrong line ending for printf

2024-01-04 Thread berndmoessner80
From: Bernd Moessner --- .../lwip211/src/contrib/ports/xilinx/netif/xadapter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embeddedsw/ThirdParty/sw_services/lwip211/src/contrib/ports/xilinx/netif/xadapter.c b/embeddedsw/ThirdParty/sw_services/lwip211/src/cont

[PATCH rtems 14/14] FIX: 80 char per line limit issues

2024-01-04 Thread berndmoessner80
From: Bernd Moessner --- cpukit/dev/flash/flashdev.c | 43 +-- cpukit/include/dev/flash/flashdev.h | 3 +- cpukit/libmisc/shell/main_flashdev.c | 10 - testsuites/libtests/flashdev01/init.c | 17 ++-- .../libtests/flashdev01/t

[PATCH rtems 00/14] #4981 Overwork flashdev

2024-01-04 Thread berndmoessner80
From: Bernd Moessner Dear all, as outlined in https://devel.rtems.org/ticket/4981 I`d like to overwork the flashdev API. The provided patch series should at least serve as a fundament for the discussion. It includes more, but h: 1) Bugfixes 1.1) missing c++ include guards 1.2) missing defaul

[PATCH rtems 02/14] Flashdev: Unify IOCTL macro names

2024-01-04 Thread berndmoessner80
From: Bernd Moessner --- cpukit/dev/flash/flashdev.c | 16 cpukit/include/dev/flash/flashdev.h | 16 cpukit/libmisc/shell/main_flashdev.c | 12 ++-- testsuites/libtests/flashdev01/init.c | 16 4 files changed, 30 insertions(

[PATCH rtems-lwip 10/10] FIX compiler warning due to macro redefinition

2024-01-04 Thread berndmoessner80
From: Bernd Moessner --- rtemslwip/common/rtems_lwip_io.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/rtemslwip/common/rtems_lwip_io.c b/rtemslwip/common/rtems_lwip_io.c index ee34774..2fed874 100644 --- a/rtemslwip/common/rtems_lwip_io.c +++ b/rtemslwip/common/rtems_lwip_io.c @@ -31,8

[PATCH rtems 11/14] Flashdev: Update copyright notice

2024-01-04 Thread berndmoessner80
From: Bernd Moessner --- cpukit/dev/flash/flashdev.c| 1 + cpukit/include/dev/flash/flashdev.h| 1 + testsuites/libtests/flashdev01/init.c | 1 + testsuites/libtests/flashdev01/test_flashdev.c | 1 + testsuites/libtests/flashdev01/test_flashdev.h | 1 + 5

[PATCH rtems-lwip 09/10] FIX incompatible pointer warning

2024-01-04 Thread berndmoessner80
From: Bernd Moessner --- .../contrib/ports/xilinx/netif/xemacpsif.c| 21 +++ 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/embeddedsw/ThirdParty/sw_services/lwip211/src/contrib/ports/xilinx/netif/xemacpsif.c b/embeddedsw/ThirdParty/sw_services/lwip211/src/

[PATCH rtems-lwip - v1 00/11] RTEMS LWIP clean up - V1

2024-01-04 Thread berndmoessner80
From: Bernd Moessner This patch set: a) Changes the submodule paths to https so that the project can be checked out in restricted network environments b) Fixes a bug in lwip.py. The library search path wasnt set up so it was only possible to install rtems-lwip in the rtems install folder. c) R

[PATCH rtems-lwip - v1 03/11] Clean up: remove non-existent include paths

2024-01-04 Thread berndmoessner80
From: Bernd Moessner --- defs/bsps/aarch64/xilinx_zynqmp_base.json | 2 -- 1 file changed, 2 deletions(-) diff --git a/defs/bsps/aarch64/xilinx_zynqmp_base.json b/defs/bsps/aarch64/xilinx_zynqmp_base.json index c18b339..3e47434 100644 --- a/defs/bsps/aarch64/xilinx_zynqmp_base.json +++ b/defs/

[PATCH rtems-lwip 01/10] FIX: adjust submodule path to allow checkout in restricted network environments

2024-01-04 Thread berndmoessner80
From: Bernd Moessner --- .gitmodules | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitmodules b/.gitmodules index 4ea46da..f6d2b63 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,6 +1,6 @@ [submodule "lwip-upstream"] path = lwip-upstream - url = git://g

[PATCH rtems-lwip - v1 01/11] FIX: adjust submodule path to allow checkout in restricted network environments

2024-01-04 Thread berndmoessner80
From: Bernd Moessner --- .gitmodules | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitmodules b/.gitmodules index 4ea46da..f6d2b63 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,6 +1,6 @@ [submodule "lwip-upstream"] path = lwip-upstream - url = git://g

[PATCH rtems-lwip 06/10] FIX: printf format spec compiler warning due to uintptr having 64bits on 64bit machines

2024-01-04 Thread berndmoessner80
From: Bernd Moessner --- .../lwip211/src/contrib/ports/xilinx/netif/xadapter.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/embeddedsw/ThirdParty/sw_services/lwip211/src/contrib/ports/xilinx/netif/xadapter.c b/embeddedsw/ThirdParty/sw_services/lwip211/src/con

[PATCH rtems-lwip - v1 07/11] FIX: incompatible pointer warning

2024-01-04 Thread berndmoessner80
From: Bernd Moessner --- .../lwip211/src/contrib/ports/xilinx/netif/xemacpsif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embeddedsw/ThirdParty/sw_services/lwip211/src/contrib/ports/xilinx/netif/xemacpsif.c b/embeddedsw/ThirdParty/sw_services/lwip211/src/con

[PATCH rtems 01/14] FIX: Add missing C++ include guards

2024-01-04 Thread berndmoessner80
From: Bernd Moessner --- cpukit/include/dev/flash/flashdev.h | 9 + 1 file changed, 9 insertions(+) diff --git a/cpukit/include/dev/flash/flashdev.h b/cpukit/include/dev/flash/flashdev.h index d1dc08a5c4..6759357206 100644 --- a/cpukit/include/dev/flash/flashdev.h +++ b/cpukit/include/

[PATCH rtems 07/14] Flashdev: Refactor write_block_size and add function to dergister flashdev

2024-01-04 Thread berndmoessner80
From: Bernd Moessner --- cpukit/dev/flash/flashdev.c | 71 -- cpukit/include/dev/flash/flashdev.h | 22 +- cpukit/libmisc/shell/main_flashdev.c | 26 +-- testsuites/libtests/flashdev01/init.c | 204 -- .../libtests/flashdev01/te

[PATCH rtems-lwip 00/10] RTEMS LWIP clean up

2024-01-04 Thread berndmoessner80
From: Bernd Moessner This patch set: a) Changes the submodule paths to https so that the project can be checked out in restricted network environments b) Fixes a bug in lwip.py. The library search path wasnt set up so it was only possible to install rtems-lwip in the rtems install folder. c) R

[PATCH rtems 10/14] Flashdev: Refactoring, replace region with partition jargon and allow IOTCLs to return a value

2024-01-04 Thread berndmoessner80
From: Bernd Moessner --- cpukit/dev/flash/flashdev.c | 1051 + cpukit/include/dev/flash/flashdev.h | 250 ++-- cpukit/libmisc/shell/main_flashdev.c |2 +- testsuites/libtests/flashdev01/init.c | 97 +- .../libtests/flashdev01/te

[PATCH rtems 03/14] Flashdev: Align IOCTL function and macro names

2024-01-04 Thread berndmoessner80
From: Bernd Moessner --- cpukit/dev/flash/flashdev.c | 72 +-- cpukit/include/dev/flash/flashdev.h | 12 ++-- .../libtests/flashdev01/test_flashdev.c | 36 +- 3 files changed, 60 insertions(+), 60 deletions(-) diff --git a/cpukit/dev/fla

[PATCH rtems-lwip 08/10] FIX incompatible pointer warning

2024-01-04 Thread berndmoessner80
From: Bernd Moessner --- .../lwip211/src/contrib/ports/xilinx/netif/xadapter.c| 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/embeddedsw/ThirdParty/sw_services/lwip211/src/contrib/ports/xilinx/netif/xadapter.c b/embeddedsw/ThirdParty/sw_services/lwip211/src/con

[PATCH rtems-lwip 04/10] FIX: warning variable might be used without initialization

2024-01-04 Thread berndmoessner80
From: Bernd Moessner --- rtemslwip/common/sys_arch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtemslwip/common/sys_arch.c b/rtemslwip/common/sys_arch.c index 2651c9c..b97404c 100644 --- a/rtemslwip/common/sys_arch.c +++ b/rtemslwip/common/sys_arch.c @@ -372,7 +372,7 @@

[PATCH rtems-lwip 05/10] FIX: remove header files which are already provided by RTEMS

2024-01-04 Thread berndmoessner80
From: Bernd Moessner --- defs/bsps/aarch64/xilinx_zynqmp_base.json | 3 +- .../src/arm/ARMv8/64bit/xil_cache.h | 75 .../standalone/src/arm/common/xil_exception.h | 408 -- rtemslwip/xilinx/xil_printf.h | 33 -- rtemslwip/xilinx/xil_smc.h

[PATCH rtems 13/14] Flashdev: Allow flash geometry beeing set from test case

2024-01-04 Thread berndmoessner80
From: Bernd Moessner --- testsuites/libtests/flashdev01/init.c | 9 ++-- .../libtests/flashdev01/test_flashdev.c | 51 +-- .../libtests/flashdev01/test_flashdev.h | 2 +- 3 files changed, 42 insertions(+), 20 deletions(-) diff --git a/testsuites/libtests/fl

[PATCH rtems 04/14] Flashdev: Align IOCTL and shell function names

2024-01-04 Thread berndmoessner80
From: Bernd Moessner --- cpukit/libmisc/shell/main_flashdev.c | 36 ++-- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/cpukit/libmisc/shell/main_flashdev.c b/cpukit/libmisc/shell/main_flashdev.c index 969b0687d2..516c77ae27 100644 --- a/cpukit/libmisc/s

[PATCH rtems-lwip - v1 04/11] FIX: warning variable might be used without initialization

2024-01-04 Thread berndmoessner80
From: Bernd Moessner --- rtemslwip/common/sys_arch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtemslwip/common/sys_arch.c b/rtemslwip/common/sys_arch.c index 2651c9c..b97404c 100644 --- a/rtemslwip/common/sys_arch.c +++ b/rtemslwip/common/sys_arch.c @@ -372,7 +372,7 @@

[PATCH rtems 05/14] FIX: Add missing default case

2024-01-04 Thread berndmoessner80
From: Bernd Moessner --- cpukit/dev/flash/flashdev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cpukit/dev/flash/flashdev.c b/cpukit/dev/flash/flashdev.c index 27edead968..8bd3d11246 100644 --- a/cpukit/dev/flash/flashdev.c +++ b/cpukit/dev/flash/flashdev.c @@ -390,6 +390,8 @@ static

[PATCH rtems-lwip - v1 08/11] FIX incompatible pointer warning

2024-01-04 Thread berndmoessner80
From: Bernd Moessner --- .../lwip211/src/contrib/ports/xilinx/netif/xadapter.c| 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/embeddedsw/ThirdParty/sw_services/lwip211/src/contrib/ports/xilinx/netif/xadapter.c b/embeddedsw/ThirdParty/sw_services/lwip211/src/con

[PATCH rtems-lwip - v1 05/11] FIX: remove header files which are already provided by RTEMS

2024-01-04 Thread berndmoessner80
From: Bernd Moessner --- defs/bsps/aarch64/xilinx_zynqmp_base.json | 3 +- .../src/arm/ARMv8/64bit/xil_cache.h | 75 .../standalone/src/arm/common/xil_exception.h | 408 -- rtemslwip/xilinx/xil_printf.h | 33 -- rtemslwip/xilinx/xil_smc.h

[PATCH rtems 12/14] Add IOCTL to get the active partition idx

2024-01-04 Thread berndmoessner80
From: Bernd Moessner --- cpukit/dev/flash/flashdev.c | 24 cpukit/include/dev/flash/flashdev.h | 9 + 2 files changed, 33 insertions(+) diff --git a/cpukit/dev/flash/flashdev.c b/cpukit/dev/flash/flashdev.c index b06e7d0c2f..ee01b8b447 100644 --- a/cpuk

[PATCH rtems-lwip 07/10] FIX: incompatible pointer warning

2024-01-04 Thread berndmoessner80
From: Bernd Moessner --- .../lwip211/src/contrib/ports/xilinx/netif/xemacpsif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embeddedsw/ThirdParty/sw_services/lwip211/src/contrib/ports/xilinx/netif/xemacpsif.c b/embeddedsw/ThirdParty/sw_services/lwip211/src/con

[PATCH rtems-lwip - v1 06/11] FIX: printf format spec compiler warning due to uintptr having 64bits on 64bit machines

2024-01-04 Thread berndmoessner80
From: Bernd Moessner --- .../lwip211/src/contrib/ports/xilinx/netif/xadapter.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/embeddedsw/ThirdParty/sw_services/lwip211/src/contrib/ports/xilinx/netif/xadapter.c b/embeddedsw/ThirdParty/sw_services/lwip211/src/con

[PATCH rtems6 - v1 15/16] FIX: printf size warning on 64bit systems

2024-01-04 Thread berndmoessner80
From: Bernd Moessner --- cpukit/dev/flash/flashdev.c | 6 +++--- cpukit/include/dev/flash/flashdev.h | 6 ++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/cpukit/dev/flash/flashdev.c b/cpukit/dev/flash/flashdev.c index ee06007a53..b3cec5af35 100644 --- a/cpukit/dev/f

[PATCH rtems6 - v1 16/16] FIX: missing return value warning

2024-01-04 Thread berndmoessner80
From: Bernd Moessner --- cpukit/dev/flash/flashdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpukit/dev/flash/flashdev.c b/cpukit/dev/flash/flashdev.c index b3cec5af35..8b9dfc7832 100644 --- a/cpukit/dev/flash/flashdev.c +++ b/cpukit/dev/flash/flashdev.c @@ -1101,7 +1

[PATCH rtems6 - v1 13/16] Flashdev: Allow flash geometry beeing set from test case

2024-01-04 Thread berndmoessner80
From: Bernd Moessner --- testsuites/libtests/flashdev01/init.c | 9 ++-- .../libtests/flashdev01/test_flashdev.c | 51 +-- .../libtests/flashdev01/test_flashdev.h | 2 +- 3 files changed, 42 insertions(+), 20 deletions(-) diff --git a/testsuites/libtests/fl

[PATCH rtems6 - v1 14/16] FIX: 80 char per line limit issues

2024-01-04 Thread berndmoessner80
From: Bernd Moessner --- cpukit/dev/flash/flashdev.c | 43 +-- cpukit/include/dev/flash/flashdev.h | 3 +- cpukit/libmisc/shell/main_flashdev.c | 10 - testsuites/libtests/flashdev01/init.c | 17 ++-- .../libtests/flashdev01/t

[PATCH rtems6 - v1 12/16] Add IOCTL to get the active partition idx

2024-01-04 Thread berndmoessner80
From: Bernd Moessner --- cpukit/dev/flash/flashdev.c | 24 cpukit/include/dev/flash/flashdev.h | 9 + 2 files changed, 33 insertions(+) diff --git a/cpukit/dev/flash/flashdev.c b/cpukit/dev/flash/flashdev.c index b06e7d0c2f..ee01b8b447 100644 --- a/cpuk

[PATCH rtems6 - v1 11/16] Flashdev: Update copyright notice

2024-01-04 Thread berndmoessner80
From: Bernd Moessner --- cpukit/dev/flash/flashdev.c| 1 + cpukit/include/dev/flash/flashdev.h| 1 + testsuites/libtests/flashdev01/init.c | 1 + testsuites/libtests/flashdev01/test_flashdev.c | 1 + testsuites/libtests/flashdev01/test_flashdev.h | 1 + 5

[PATCH rtems6 - v1 10/16] Flashdev: Refactoring, replace region with partition jargon and allow IOTCLs to return a value

2024-01-04 Thread berndmoessner80
From: Bernd Moessner --- cpukit/dev/flash/flashdev.c | 1051 + cpukit/include/dev/flash/flashdev.h | 250 ++-- cpukit/libmisc/shell/main_flashdev.c |2 +- testsuites/libtests/flashdev01/init.c | 97 +- .../libtests/flashdev01/te

[PATCH rtems6 - v1 09/16] FIX: Regions must be aligned with erase size

2024-01-04 Thread berndmoessner80
From: Bernd Moessner --- cpukit/dev/flash/flashdev.c | 35 ++ testsuites/libtests/flashdev01/init.c | 66 --- 2 files changed, 95 insertions(+), 6 deletions(-) diff --git a/cpukit/dev/flash/flashdev.c b/cpukit/dev/flash/flashdev.c index 2e6a2e3c19..

[PATCH rtems6 - v1 04/16] Flashdev: Align IOCTL and shell function names

2024-01-04 Thread berndmoessner80
From: Bernd Moessner --- cpukit/libmisc/shell/main_flashdev.c | 36 ++-- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/cpukit/libmisc/shell/main_flashdev.c b/cpukit/libmisc/shell/main_flashdev.c index 969b0687d2..516c77ae27 100644 --- a/cpukit/libmisc/s

[PATCH rtems6 - v1 08/16] Flashdev: Add IOCTL to get the erase size

2024-01-04 Thread berndmoessner80
From: Bernd Moessner --- cpukit/dev/flash/flashdev.c | 24 +++ cpukit/include/dev/flash/flashdev.h | 21 + cpukit/libmisc/shell/main_flashdev.c | 28 + testsuites/libtests/flashdev01/init.c | 14 ++--- .../l

[PATCH rtems6 - v1 07/16] Flashdev: Refactor write_block_size and add function to dergister flashdev

2024-01-04 Thread berndmoessner80
From: Bernd Moessner --- cpukit/dev/flash/flashdev.c | 71 -- cpukit/include/dev/flash/flashdev.h | 22 +- cpukit/libmisc/shell/main_flashdev.c | 26 +-- testsuites/libtests/flashdev01/init.c | 204 -- .../libtests/flashdev01/te

[PATCH rtems6 - v1 06/16] Flashdev: Make mutex name more generic

2024-01-04 Thread berndmoessner80
From: Bernd Moessner --- cpukit/dev/flash/flashdev.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cpukit/dev/flash/flashdev.c b/cpukit/dev/flash/flashdev.c index 8bd3d11246..0020e8d2c1 100644 --- a/cpukit/dev/flash/flashdev.c +++ b/cpukit/dev/flash/flashdev.c @@ -34,6

[PATCH rtems6 - v1 05/16] FIX: Add missing default case

2024-01-04 Thread berndmoessner80
From: Bernd Moessner --- cpukit/dev/flash/flashdev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cpukit/dev/flash/flashdev.c b/cpukit/dev/flash/flashdev.c index 27edead968..8bd3d11246 100644 --- a/cpukit/dev/flash/flashdev.c +++ b/cpukit/dev/flash/flashdev.c @@ -390,6 +390,8 @@ static

[PATCH rtems6 - v1 03/16] Flashdev: Align IOCTL function and macro names

2024-01-04 Thread berndmoessner80
From: Bernd Moessner --- cpukit/dev/flash/flashdev.c | 72 +-- cpukit/include/dev/flash/flashdev.h | 12 ++-- .../libtests/flashdev01/test_flashdev.c | 36 +- 3 files changed, 60 insertions(+), 60 deletions(-) diff --git a/cpukit/dev/fla

[PATCH rtems6 - v1 02/16] Flashdev: Unify IOCTL macro names

2024-01-04 Thread berndmoessner80
From: Bernd Moessner --- cpukit/dev/flash/flashdev.c | 16 cpukit/include/dev/flash/flashdev.h | 16 cpukit/libmisc/shell/main_flashdev.c | 12 ++-- testsuites/libtests/flashdev01/init.c | 16 4 files changed, 30 insertions(

[PATCH rtems6 - v1 01/16] FIX: Add missing C++ include guards

2024-01-04 Thread berndmoessner80
From: Bernd Moessner --- cpukit/include/dev/flash/flashdev.h | 9 + 1 file changed, 9 insertions(+) diff --git a/cpukit/include/dev/flash/flashdev.h b/cpukit/include/dev/flash/flashdev.h index d1dc08a5c4..6759357206 100644 --- a/cpukit/include/dev/flash/flashdev.h +++ b/cpukit/include/

[PATCH rtems6 - v1 00/16] Overwork flashdev - V1

2024-01-04 Thread berndmoessner80
From: Bernd Moessner Dear all, as outlined in https://devel.rtems.org/ticket/4981 I`d like to overwork the flashdev API. The provided patch series should at least serve as a fundament for the discussion. It includes more, but h: 1) Bugfixes 1.1) missing c++ include guards 1.2) missing defaul

[PATCH rtems] Include support files also for Zynq7000

2023-12-23 Thread berndmoessner80
From: Bernd Moessner --- spec/build/bsps/arm/xilinx-zynq/grp.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/build/bsps/arm/xilinx-zynq/grp.yml b/spec/build/bsps/arm/xilinx-zynq/grp.yml index eeffea0..afa1e44 100644 --- a/spec/build/bsps/arm/xilinx-zynq/grp.yml +++ b/spec/build/b

[rtems-lwip] Switch submodule protocol to https to allow use in restricted network environments

2023-12-23 Thread berndmoessner80
From: Bernd Moessner --- .gitmodules | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitmodules b/.gitmodules index 4ea46da..e772af8 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,6 +1,6 @@ [submodule "lwip-upstream"] path = lwip-upstream - url = git://g

[FIX rtems master] Fix comments in Zynq testsuite files

2023-12-17 Thread berndmoessner80
From: Bernd Moessner --- bsps/arm/xilinx-zynq/config/xilinx_zynq_a9_qemu-testsuite.tcfg | 2 +- bsps/arm/xilinx-zynq/config/xilinx_zynq_microzed-testsuite.tcfg | 2 +- bsps/arm/xilinx-zynq/config/xilinx_zynq_picozed-testsuite.tcfg | 2 +- bsps/arm/xilinx-zynq/config/xilinx_zynq_pynq-testsuite.

[PATCH v2 rtems master 2/2] Fix zedboard clock settings

2023-11-13 Thread berndmoessner80
From: Bernd Moessner There has been a discussion on this quite some time ago here: https://rtems-devel.rtems.narkive.com/EoIm4krA/sleep-time-is-doubled-xilinx-zynq-zedboard However, the issue has never been fixed. As outlined in the discussion, this must be f_cpu / 2. Thus as long as the board

[PATCH v2 rtems master 1/2] Fix add missing clock settings for zc706

2023-11-13 Thread berndmoessner80
From: Bernd Moessner --- spec/build/bsps/arm/xilinx-zynq/opta9periphclk.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/build/bsps/arm/xilinx-zynq/opta9periphclk.yml b/spec/build/bsps/arm/xilinx-zynq/opta9periphclk.yml index 7233f73d5a..fdee4c0568 100644 --- a/sp

[PATCH rtems master] Fix zedboard clock settings

2023-11-13 Thread berndmoessner80
From: Bernd Moessner There has been a discussion on this quite some time ago here: https://rtems-devel.rtems.narkive.com/EoIm4krA/sleep-time-is-doubled-xilinx-zynq-zedboard However, the issue has never been fixed. As outlined in the discussion, this must be f_cpu / 2. Thus as long as the board

[PATCH rtems master] Fix zedboard clock settings

2023-11-13 Thread berndmoessner80
From: Bernd Moessner There has been a discussion on this quite some time ago here: https://rtems-devel.rtems.narkive.com/EoIm4krA/sleep-time-is-doubled-xilinx-zynq-zedboard However, the issue has never been fixed. As outlined in the discussion, this must be f_cpu / 2. Thus as long as the board

[PATCH libbsd] Checkout submodule using https (restrictive company firewalls block git protocol)

2023-11-13 Thread berndmoessner80
From: Bernd Moessner --- .gitmodules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitmodules b/.gitmodules index beeaf117..e8f6733e 100644 --- a/.gitmodules +++ b/.gitmodules @@ -3,4 +3,4 @@ url = https://github.com/freebsd/freebsd.git [submodule "rtems_waf"]

[PATCH] Checkout submodule using https (restrictive company firewalls block git protocol)

2023-11-13 Thread berndmoessner80
From: Bernd Moessner --- .gitmodules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitmodules b/.gitmodules index beeaf117..e8f6733e 100644 --- a/.gitmodules +++ b/.gitmodules @@ -3,4 +3,4 @@ url = https://github.com/freebsd/freebsd.git [submodule "rtems_waf"]