Re: Writing code that takes time to run

2021-05-21 Thread Richi Dubey
Hi, About the code: T_busy(T_get_one_clock_tick_busy() * SOME_CONSTANT); does this support context switch? If task A executing on CPU 1 gets preempted while executing this (by task B) and then comes back on CPU 1 after some time (when task B finishes its execution), would task A finish its exec

Re: How to debug on leon3 with sis and gdb

2021-05-21 Thread Richi Dubey
Thanks for the quick response and the explanation! It was of immense help. On Fri, May 21, 2021 at 2:05 PM Jiri Gaisler wrote: > Forgot copy the list. > > On 5/21/21 7:02 AM, Richi Dubey wrote: > > Hi, > > A test fails at the assert(sc==RTEMS_SUCCESSFUL) after a call to > rtems_task_set_affinity

[PATCH 3/3] sysinit: Do not open console when just referencing reentrancy structure.

2021-05-21 Thread Joel Sherrill
This change eliminates a system initialization dependentcy which resulted in an application without a file system or console referencing errno being forced to include the code to open(/dev/console), close(), atexit(), and the unmount infrastructure. Closes #4439. --- cpukit/include/rtems/confdefs

[PATCH 2/3] powerpc/.../sbrk.c: Do not reference errno.

2021-05-21 Thread Joel Sherrill
Closes #4r37. --- bsps/powerpc/shared/start/sbrk.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/bsps/powerpc/shared/start/sbrk.c b/bsps/powerpc/shared/start/sbrk.c index 95104ba9c8..d7507b3997 100644 --- a/bsps/powerpc/shared/start/sbrk.c +++ b/bsps/powerpc/s

[PATCH 0/3] minimum.exe Size Reduction Patches

2021-05-21 Thread Joel Sherrill
This patch set is the culmination of the recent inquiry into why some BSPs have a minimum.exe around 32K of text and others are twice that. This addresses two unnecessary dependencies that resulted in ~25K reductions in minimum.exe for the jmr3904 and psim BSPs. I plan to make a sweep in the near

[PATCH 1/3] ppc-irq-legacy.c: Use rtems_malloc() instead of malloc().

2021-05-21 Thread Joel Sherrill
Closes #4438. --- bsps/powerpc/shared/irq/ppc-irq-legacy.c | 21 +++-- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/bsps/powerpc/shared/irq/ppc-irq-legacy.c b/bsps/powerpc/shared/irq/ppc-irq-legacy.c index 931a9c6074..982ef5d115 100644 --- a/bsps/powerpc/shared/

[PATCH] rtems-binutils-head.cfg, rtems-gdb-head.cfg: Bump to 3b2bef8

2021-05-21 Thread Joel Sherrill
--- rtems/config/tools/rtems-binutils-head.cfg | 4 ++-- rtems/config/tools/rtems-gdb-head.cfg | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rtems/config/tools/rtems-binutils-head.cfg b/rtems/config/tools/rtems-binutils-head.cfg index 4c36865..46abb68 100644 --- a/

[PATCH 2/5] Add various .gitignore files

2021-05-21 Thread Joel Sherrill
--- .gitignore | 1 + mcast/.gitignore | 5 + ttcp/.gitignore | 1 + 3 files changed, 7 insertions(+) create mode 100644 .gitignore create mode 100644 mcast/.gitignore create mode 100644 ttcp/.gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 000..fecf58a

[PATCH 3/5] Misc: Fix various warnings

2021-05-21 Thread Joel Sherrill
--- dnstest/init.c| 2 +- http/init.c | 2 +- mcast/init.c | 7 ++- mcast/mcast.c | 1 + mcast/mcast_route.c | 1 + netdemo/init.c| 3 ++- netdemo/test.c| 2 +- nfsClientTest/init.c | 2 +- ntp/init.c| 2 +- rpc_demo/in

[PATCH 4/5] Switch all tests to unlimited objects and unified workspace

2021-05-21 Thread Joel Sherrill
--- dnstest/init.c | 9 - http/init.c | 12 mcast/init.c | 3 +-- netdemo/init.c | 9 - nfsClientTest/init.c | 7 +++ ntp/init.c | 9 - rpc_demo/init.c | 5 ++--- select/init.c| 9 - telnetd

[PATCH 5/5] Eliminate configuring init mask modes since setting to default value

2021-05-21 Thread Joel Sherrill
--- dnstest/init.c | 4 http/init.c | 4 mcast/init.c | 4 netdemo/init.c | 4 nfsClientTest/init.c | 4 ntp/init.c | 4 select/init.c| 4 telnetd/init.c | 4 tftpTest/init.c | 4 ttcp/init.c

[PATCH 1/5] Required changes to get back to a buildable state.

2021-05-21 Thread Joel Sherrill
From: Jennifer Averett This primarily reflects changes since the legacy network stack was split into its own repository. --- Makefile | 3 ++- dnstest/Makefile | 2 +- http/Makefile | 2 +- mcast/Makefile | 4 ++-- netdemo/Makefile | 4 ++-- nfsCli

[PATCH 0/5] Network Demo Cleanup

2021-05-21 Thread Joel Sherrill
Hi The network demos repository has been lacking for love over the past few years. These examples are intended to be able to compile for loopback but have their network configuration changed to that of a user environment and then work properly there. When Jennifer and I started, this code did not

Re: [PATCH v4] sb: Merge mailer changes from rtems-tools

2021-05-21 Thread Alex White
ping :) From: Alex White Sent: Tuesday, May 11, 2021 10:19 AM To: devel@rtems.org Cc: Alex White Subject: [PATCH v4] sb: Merge mailer changes from rtems-tools This adds the improved mailer.py script from rtems-tools. Closes #4388 --- source-builder/sb/mailer.p

Re: [PATCH] score: Direct thread dispatch in a self restart

2021-05-21 Thread Gedare Bloom
ok, tricky case. On Fri, May 21, 2021 at 8:57 AM Sebastian Huber wrote: > > Commit 73ebf9a27ed5cd0fd3e0dc0da98345d7faa610a2 accidentally removed the > direct thread dispatch in a self thread restart. In case of a self > restart (always in task context) the directive shall not return. If > this

[PATCH] score: Direct thread dispatch in a self restart

2021-05-21 Thread Sebastian Huber
Commit 73ebf9a27ed5cd0fd3e0dc0da98345d7faa610a2 accidentally removed the direct thread dispatch in a self thread restart. In case of a self restart (always in task context) the directive shall not return. If this is not possible due to a bad thread dispatch disable level, then a fatal error shall

Re: [PATCH] Bump newlib for rtems 6 and 7 to get UTIME_NOW and UTIME_OMIT constants.

2021-05-21 Thread Gedare Bloom
ok On Fri, May 21, 2021 at 8:26 AM Joel Sherrill wrote: > > --- > rtems/config/tools/rtems-gcc-10-newlib-head.cfg | 4 ++-- > rtems/config/tools/rtems-gcc-head-newlib-head.cfg | 4 ++-- > 2 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/rtems/config/tools/rtems-gcc-10-newlib-h

Re: [PATCH v2] legacy nfs.c: Change filesystem utime_h handler to utimens_h

2021-05-21 Thread Joel Sherrill
As a warning, this and the corresponding libbsd patch are queued behind an RSB patch to get UTIME_NOW and UTIME_OMIT in newlib. That patch was merged into newlib. Then the RTEMS *utime* patch set and these two will go in at the same time. Otherwise, there will be breakage. On Fri, May 21, 2021 at

[PATCH] Bump newlib for rtems 6 and 7 to get UTIME_NOW and UTIME_OMIT constants.

2021-05-21 Thread Joel Sherrill
--- rtems/config/tools/rtems-gcc-10-newlib-head.cfg | 4 ++-- rtems/config/tools/rtems-gcc-head-newlib-head.cfg | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rtems/config/tools/rtems-gcc-10-newlib-head.cfg b/rtems/config/tools/rtems-gcc-10-newlib-head.cfg index 9ed2ba

Re: [PATCH v2] legacy nfs.c: Change filesystem utime_h handler to utimens_h

2021-05-21 Thread Gedare Bloom
On Mon, May 3, 2021 at 12:41 PM Ryan Long wrote: > > Changed nfs_utime() to nfs_utimens(), changed the arguments to use > a timespec array instead of individual variables for access and > modified time. > > Updates #4400 > --- > nfsclient/src/nfs.c | 50 +--

Building llvm toolchain for RTEMS

2021-05-21 Thread Jan.Sommer
Hello, I see some references to llvm toolchains for RTEMS from time to time, but haven't really looked into it. Is it possible to let RSB build a clang C/C++ compiler and kernel for e.g. the Zedboard BSP? If yes, how would I build such a toolchain? I see that there is a llvm buildset in RSB, bu

AW: question about posix timer expiration

2021-05-21 Thread Gabriel.Moyano
Hi Chris, Did you compile ptpd with kqueue only? I’ve tried with posix timer, which are implemented in rtems, but it seems that the handler with siginfo_t is not called correctly. I’ve managed to get it working using a workaround but I’ll continue with kqueue, thx!. Regards, Gabriel Von: Chr

Fwd: How to debug on leon3 with sis and gdb

2021-05-21 Thread Jiri Gaisler
Forgot copy the list. On 5/21/21 7:02 AM, Richi Dubey wrote: Hi, A test fails at the assert(sc==RTEMS_SUCCESSFUL) after a call to rtems_task_set_affinity. So, following the docs , I figured out where the break point should be set: