Re: [PATCH 1/2] cpukit/aarch64: Keep state across context switch

2022-02-25 Thread Kinsey Moore
On 2/26/2022 00:53, Sebastian Huber wrote: On 26/02/2022 00:41, Kinsey Moore wrote: This may also be an issue for ARM, RISC-V and others as it doesn't appear that ARM saves CPSR during context switch and I couldn't tell that RISC-V does this either, though I'm less familiar with it. This

Re: [PATCH 1/2] cpukit/aarch64: Keep state across context switch

2022-02-25 Thread Sebastian Huber
On 26/02/2022 00:41, Kinsey Moore wrote: This may also be an issue for ARM, RISC-V and others as it doesn't appear that ARM saves CPSR during context switch and I couldn't tell that RISC-V does this either, though I'm less familiar with it. This doesn't look like the right way to fix this

Re: Update to Binutils 2.38

2022-02-25 Thread Sebastian Huber
On 25/02/2022 15:33, Sebastian Huber wrote: On 24/02/2022 10:46, Sebastian Huber wrote: Hello, just for your information, I updated the RSB to use Binutils 2.38 for the RTEMS 6 tool suite. This update causes a lot of trouble for riscv BSPs: unrecognized opcode `csrr a0,mcause' unrecognized

Re: [PATCH] added malloc usable size and test

2022-02-25 Thread zack leung
ping On Sat, 26 Feb 2022 at 02:42, zack leung wrote: > ping > * > > On Sun, 20 Feb 2022 at 02:55, zack leung wrote: > >> diff --git a/cpukit/include/rtems/libcsupport.h >> b/cpukit/include/rtems/libcsupport.h >> index f4be4cfc9a..ec385bb71a 100644 >> --- a/cpukit/include/rtems/libcsupport.h

Re: [PATCH] added malloc usable size and test

2022-02-25 Thread zack leung
ping * On Sun, 20 Feb 2022 at 02:55, zack leung wrote: > diff --git a/cpukit/include/rtems/libcsupport.h > b/cpukit/include/rtems/libcsupport.h > index f4be4cfc9a..ec385bb71a 100644 > --- a/cpukit/include/rtems/libcsupport.h > +++ b/cpukit/include/rtems/libcsupport.h > @@ -73,7 +73,10 @@ extern

Re: Update to GDB 11.2?

2022-02-25 Thread Anders Montonen
Hi, > On 25 Feb 2022, at 7:53, Sebastian Huber > wrote: > > On 24/02/2022 14:53, Sebastian Huber wrote: >> On 24/02/2022 14:40, Joel Sherrill wrote: >>> On Thu, Feb 24, 2022, 5:50 AM Sebastian Huber >>> >> > wrote: >>> >>> Hello, >>> >>> we

[PATCH 1/2] cpukit/aarch64: Keep state across context switch

2022-02-25 Thread Kinsey Moore
If a task migrates to a newly turned-up CPU as the first task it executes, no guarantees are made about whether interrupts are enabled and it is possible for a task to change interrupt enable states during the migration. This preserves interrupt state across context switches. ---

[PATCH 2/2] cpukit/aarch64: Add Per_CPU_Control accessor

2022-02-25 Thread Kinsey Moore
Add an architecture-specific implementation for _CPU_Get_current_per_CPU_control() to reduce overhead for getting the current CPU's Per_CPU_Control structure. --- .../cpu/aarch64/include/rtems/score/cpuimpl.h | 23 +++ 1 file changed, 23 insertions(+) diff --git

[PATCH 04/27] cpukit/include/rtems/score/[a-r]*.h: Change license to BSD-2

2022-02-25 Thread Joel Sherrill
Updates #3053. --- cpukit/include/rtems/score/address.h | 25 --- cpukit/include/rtems/score/apimutex.h | 25 --- cpukit/include/rtems/score/assert.h | 25 --- cpukit/include/rtems/score/atomic.h | 25

[PATCH 01/27] score/src/[a-m]*.c: Change license to BSD-2

2022-02-25 Thread Joel Sherrill
Updates #3053. --- cpukit/score/src/allocatormutex.c | 25 --- cpukit/score/src/apimutexisowner.c| 25 --- cpukit/score/src/apimutexlock.c | 25 --- cpukit/score/src/apimutexunlock.c | 25

[PATCH 16/27] score/cpu/m68k: Change license to BSD-2

2022-02-25 Thread Joel Sherrill
Updates #3053. --- cpukit/score/cpu/m68k/__m68k_read_tp.c| 25 --- cpukit/score/cpu/m68k/cpu.c | 25 --- cpukit/score/cpu/m68k/cpu_asm.S | 25 --- .../score/cpu/m68k/include/rtems/score/cpu.h | 25

[PATCH 18/27] score/cpu/nios2: Change license to BSD-2

2022-02-25 Thread Joel Sherrill
Updates #3053. --- .../score/cpu/nios2/include/rtems/score/cpu.h | 25 --- .../cpu/nios2/include/rtems/score/cpu_asm.h | 25 --- .../cpu/nios2/include/rtems/score/cpuatomic.h | 25 --- .../cpu/nios2/include/rtems/score/cpuimpl.h | 25

[PATCH 17/27] score/cpu/mips: Change license to BSD-2

2022-02-25 Thread Joel Sherrill
Updates #3053. --- cpukit/score/cpu/mips/cpu.c | 25 --- cpukit/score/cpu/mips/cpu_asm.S | 25 --- .../score/cpu/mips/include/rtems/score/cpu.h | 25 --- .../cpu/mips/include/rtems/score/cpuatomic.h | 25

[PATCH 03/27] score/src/[t-z]*.c: Change license to BSD-2

2022-02-25 Thread Joel Sherrill
Updates #3053. --- cpukit/score/src/thread.c| 25 +--- cpukit/score/src/threadchangepriority.c | 25 +--- cpukit/score/src/threadclearstate.c | 25 +--- cpukit/score/src/threadcreateidle.c | 25

[PATCH 19/27] score/cpu/no_cpu: Change license to BSD-2

2022-02-25 Thread Joel Sherrill
Updates #3053. --- cpukit/score/cpu/no_cpu/cpu.c | 25 --- cpukit/score/cpu/no_cpu/cpu_asm.c | 25 --- cpukit/score/cpu/no_cpu/cpucounterfrequency.c | 25 --- cpukit/score/cpu/no_cpu/cpucounterread.c | 25

[PATCH 08/27] cpukit/include/rtems/rtems/*.h: Change license to BSD-2

2022-02-25 Thread Joel Sherrill
Updates #3053. --- cpukit/include/rtems/rtems/asrdata.h | 25 +--- cpukit/include/rtems/rtems/attrimpl.h| 25 +--- cpukit/include/rtems/rtems/barrierdata.h | 25 +--- cpukit/include/rtems/rtems/barrierimpl.h | 25

[PATCH 15/27] score/cpu/i386: Change license to BSD-2

2022-02-25 Thread Joel Sherrill
sse_test.c was deliberarely NOT changed. Updates #3053. --- cpukit/score/cpu/i386/cpu.c | 23 ++--- cpukit/score/cpu/i386/cpu_asm.S | 25 --- .../score/cpu/i386/include/rtems/score/cpu.h | 25 ---

[PATCH 20/27] score/cpu/or1k: Change license to BSD-2

2022-02-25 Thread Joel Sherrill
--- cpukit/score/cpu/or1k/cpu.c | 25 --- .../score/cpu/or1k/include/rtems/score/cpu.h | 25 --- .../cpu/or1k/include/rtems/score/cpu_asm.h| 25 --- .../cpu/or1k/include/rtems/score/cpuatomic.h | 25 ---

[PATCH 27/27] cpukit/libblock: Change license to BSD-2

2022-02-25 Thread Joel Sherrill
Updates #3053. --- cpukit/libblock/src/bdpart-create.c | 25 +--- cpukit/libblock/src/bdpart-dump.c| 25 +--- cpukit/libblock/src/bdpart-read.c| 25 +--- cpukit/libblock/src/bdpart-register.c| 25

[PATCH 11/27] posix/src/_execve.c: Change license to BSD-2

2022-02-25 Thread Joel Sherrill
Updates #3053. --- cpukit/posix/src/_execve.c | 25 ++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/cpukit/posix/src/_execve.c b/cpukit/posix/src/_execve.c index 2c8b436889..2858d13082 100644 --- a/cpukit/posix/src/_execve.c +++

[PATCH 05/27] cpukit/include/rtems/score/[s-z]*.h: Change license to BSD-2

2022-02-25 Thread Joel Sherrill
Updates #3053. --- cpukit/include/rtems/score/scheduler.h| 25 --- cpukit/include/rtems/score/schedulercbs.h | 25 --- cpukit/include/rtems/score/schedulercbsimpl.h | 25 --- cpukit/include/rtems/score/scheduleredf.h | 25

[PATCH 22/27] score/cpu/sparc: Change license to BSD-2

2022-02-25 Thread Joel Sherrill
Updates #3053. --- cpukit/score/cpu/sparc/access_le.c| 25 --- cpukit/score/cpu/sparc/cpu.c | 25 --- cpukit/score/cpu/sparc/cpu_asm.S | 25 --- .../score/cpu/sparc/include/libcpu/access.h | 25

[PATCH 12/27] cpukit/include/rtems/posix/*.h: Change license to BSD-2

2022-02-25 Thread Joel Sherrill
Updates #3053. --- cpukit/include/rtems/posix/aio_misc.h| 25 +--- cpukit/include/rtems/posix/barrierimpl.h | 25 +--- cpukit/include/rtems/posix/condimpl.h| 25 +--- cpukit/include/rtems/posix/key.h | 25

[PATCH 07/27] cpukit/rtems/src/[s-z]*.c: Change license to BSD-2

2022-02-25 Thread Joel Sherrill
Updates #3053. --- cpukit/rtems/src/scheduleraddprocessor.c | 25 --- cpukit/rtems/src/schedulergetprocessorset.c | 25 --- cpukit/rtems/src/schedulerident.c | 25 --- cpukit/rtems/src/scheduleridentbyprocessor.c | 25

[PATCH 14/27] score/cpu/arm: Change license to BSD-2

2022-02-25 Thread Joel Sherrill
Updates #3053. --- cpukit/score/cpu/arm/__aeabi_read_tp.c| 25 +++--- cpukit/score/cpu/arm/__tls_get_addr.c | 25 +++--- cpukit/score/cpu/arm/arm-context-validate.S | 25 +++--- .../cpu/arm/arm-context-volatile-clobber.S| 25

Re: Update to GDB 11.2?

2022-02-25 Thread Joel Sherrill
On Thu, Feb 24, 2022 at 11:53 PM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > On 24/02/2022 14:53, Sebastian Huber wrote: > > On 24/02/2022 14:40, Joel Sherrill wrote: > >> On Thu, Feb 24, 2022, 5:50 AM Sebastian Huber > >> >> > wrote:

[PATCH 00/27] Change License to BSD-2

2022-02-25 Thread Joel Sherrill
This large series of patches is mechanical and almost completely generated by a script. I focused on directories where all authors had given permission. There are other directories in cpukit/ which are not third-party code which should also be able to be updated. I will follow up later with

Re: Update to Binutils 2.38

2022-02-25 Thread Sebastian Huber
On 24/02/2022 10:46, Sebastian Huber wrote: Hello, just for your information, I updated the RSB to use Binutils 2.38 for the RTEMS 6 tool suite. This update causes a lot of trouble for riscv BSPs: unrecognized opcode `csrr a0,mcause' unrecognized opcode `csrr a0,mstatus' unrecognized opcode

[PATCH 23/27] score/cpu/sparc64: Change license to BSD-2

2022-02-25 Thread Joel Sherrill
--- cpukit/score/cpu/sparc64/context.S| 25 --- cpukit/score/cpu/sparc64/cpu.c| 25 --- .../cpu/sparc64/include/rtems/score/cpu.h | 25 --- .../sparc64/include/rtems/score/cpuatomic.h | 25 ---

[PATCH 26/27] cpukit/ftpd: Change license to BSD-2

2022-02-25 Thread Joel Sherrill
Not all files could be changed. Updates #3053. --- cpukit/ftpd/ftpd-init.c | 25 ++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/cpukit/ftpd/ftpd-init.c b/cpukit/ftpd/ftpd-init.c index dcc7b6178c..cf781425fb 100644 --- a/cpukit/ftpd/ftpd-init.c

[PATCH 24/27] score/cpu/v850: Change license to BSD-2

2022-02-25 Thread Joel Sherrill
Updates #3053. --- cpukit/score/cpu/v850/cpu.c | 25 --- cpukit/score/cpu/v850/cpu_asm.S | 25 --- .../score/cpu/v850/include/rtems/score/cpu.h | 25 --- .../cpu/v850/include/rtems/score/cpu_asm.h| 25

[PATCH 25/27] cpukit/include/adainclude: Change license to BSD-2

2022-02-25 Thread Joel Sherrill
Updates #3053. --- cpukit/include/adainclude/rtems-barrier.adb | 25 --- cpukit/include/adainclude/rtems-barrier.ads | 25 --- cpukit/include/adainclude/rtems-clock.adb | 25 --- cpukit/include/adainclude/rtems-clock.ads | 25

[PATCH 13/27] sapi/src/*.c: Change license to BSD-2

2022-02-25 Thread Joel Sherrill
Updates #3053. --- cpukit/sapi/src/chainappendnotify.c | 25 ++--- cpukit/sapi/src/chaingetnotify.c | 25 ++--- cpukit/sapi/src/chaingetwait.c| 25 ++--- cpukit/sapi/src/chainprependnotify.c | 25 ++---

[PATCH 21/27] score/cpu/powerpc: Change license to BSD-2

2022-02-25 Thread Joel Sherrill
Updates #3053. --- cpukit/score/cpu/powerpc/cpu.c| 25 ++--- .../powerpc/include/rtems/powerpc/registers.h | 25 ++--- .../cpu/powerpc/include/rtems/score/cpu.h | 25 ++--- .../powerpc/include/rtems/score/cpuatomic.h | 25 ++---

Re: [PATCH 1/2] cpukit/aarch64: Keep state across context switch

2022-02-25 Thread Kinsey Moore
This may also be an issue for ARM, RISC-V and others as it doesn't appear that ARM saves CPSR during context switch and I couldn't tell that RISC-V does this either, though I'm less familiar with it. Kinsey On 2/25/2022 17:33, Kinsey Moore wrote: If a task migrates to a newly turned-up CPU