RTEMS 4.11.0 Release

2016-11-15 Thread Chris Johns
RTEMS 4.11.0 Release: 4.11.0 Date : 16 November 2016 URL: https://ftp.rtems.org/pub/rtems/releases/4.11/4.11.0/ The RTEMS Project is pleased to announce the release of RTEMS 4.11.0. We would like to thank all those who have helped create this release and we would like to acknowledge a

[PATCH] Remove sparc/sis BSP.

2016-11-15 Thread Joel Sherrill
closes #2810. --- c/src/lib/libbsp/sparc/erc32/clock/ckinit.c | 4 -- c/src/lib/libbsp/sparc/erc32/configure.ac| 13 -- c/src/lib/libbsp/sparc/erc32/make/custom/sis.cfg | 5 --- c/src/lib/libbsp/sparc/erc32/timer/timer.c | 6 --- c/src/lib/libbsp/sparc/leon2/clock/ckinit.

[PATCH 06/26] score: Move CPU_PER_CPU_CONTROL_SIZE

2016-11-15 Thread Sebastian Huber
Move CPU_PER_CPU_CONTROL_SIZE and the optional CPU_Per_CPU_control to to hide it from . --- cpukit/score/cpu/arm/rtems/score/cpu.h | 2 -- cpukit/score/cpu/arm/rtems/score/cpuimpl.h | 4 +++ cpukit/score/cpu/bfin/rtems/score/cpu.h | 2 -- cpukit/score/cpu/bfin/rtems/score

[PATCH 26/26] score: Robust thread dispatch

2016-11-15 Thread Sebastian Huber
On SMP configurations, it is a fatal error to call blocking operating system with interrupts disabled, since this prevents delivery of inter-processor interrupts. This could lead to executing threads which are not allowed to execute resulting in undefined behaviour. The ARM Cortex-M port has a sim

[PATCH 17/26] score: Add Per_CPU_Control::Interrupt_frame

2016-11-15 Thread Sebastian Huber
Update #2809. --- cpukit/score/cpu/sparc/cpu.c | 5 - cpukit/score/include/rtems/score/percpu.h | 28 +--- cpukit/score/src/percpuasm.c | 14 +- 3 files changed, 38 insertions(+), 9 deletions(-) diff --git a/cpukit/score/cpu/sparc

[PATCH 14/26] powerpc: Add up to date CPU_Interrupt_frame

2016-11-15 Thread Sebastian Huber
Rename ppc_exc_min_frame to CPU_Interrupt_frame. Move it and the corresponding defines to . Update #2809. --- .../powerpc/mpc55xxevb/startup/exc-vector-base.S | 6 +- c/src/lib/libbsp/powerpc/qoriq/start/start.S | 6 +- c/src/lib/libbsp/powerpc/t32mppc/start/start.S | 6 +- ...

[PATCH 15/26] arm: Provide CPU_Interrupt_frame for ARMv4

2016-11-15 Thread Sebastian Huber
Update #2809. --- cpukit/score/cpu/arm/rtems/score/cpu.h | 2 -- cpukit/score/cpu/arm/rtems/score/cpuimpl.h | 56 +- 2 files changed, 55 insertions(+), 3 deletions(-) diff --git a/cpukit/score/cpu/arm/rtems/score/cpu.h b/cpukit/score/cpu/arm/rtems/score/cpu.h ind

[PATCH 19/26] sparc: Use Per_CPU_Control::isr_dispatch_disable

2016-11-15 Thread Sebastian Huber
Update #2751. --- c/src/lib/libbsp/sparc/shared/irq_asm.S | 10 +- cpukit/score/cpu/sparc/cpu.c | 6 -- cpukit/score/cpu/sparc/rtems/score/cpuimpl.h | 21 + 3 files changed, 10 insertions(+), 27 deletions(-) diff --git a/c/src/lib/libbsp/sparc

[PATCH 22/26] arm: Use Per_CPU_Control::isr_dispatch_disable

2016-11-15 Thread Sebastian Huber
Update #2751. --- cpukit/score/cpu/arm/arm_exc_interrupt.S | 85 ++-- cpukit/score/cpu/arm/cpu.c | 10 +++- cpukit/score/cpu/arm/cpu_asm.S | 13 - cpukit/score/cpu/arm/rtems/score/cpu.h | 17 +-- 4 files changed, 94 insertions(+), 31 de

[PATCH 24/26] score: Restrict task interrupt level to 0 on SMP

2016-11-15 Thread Sebastian Huber
Update #2811. --- cpukit/score/src/threadinitialize.c | 10 -- testsuites/smptests/smpunsupported01/init.c | 18 +- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/cpukit/score/src/threadinitialize.c b/cpukit/score/src/threadinitialize.c index 2cbe1

[PATCH 16/26] score: Add Per_CPU_Control::isr_dispatch_disable

2016-11-15 Thread Sebastian Huber
Update #2751. --- cpukit/score/include/rtems/score/percpu.h | 14 +- cpukit/score/src/percpuasm.c | 6 ++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/cpukit/score/include/rtems/score/percpu.h b/cpukit/score/include/rtems/score/percpu.h index ae789b

[PATCH 02/26] sptests/sp37: Better cope with internal padding

2016-11-15 Thread Sebastian Huber
--- testsuites/sptests/sp37/init.c | 65 ++ 1 file changed, 40 insertions(+), 25 deletions(-) diff --git a/testsuites/sptests/sp37/init.c b/testsuites/sptests/sp37/init.c index 68b28a6..e87ad9f 100644 --- a/testsuites/sptests/sp37/init.c +++ b/testsuites/sp

[PATCH 23/26] powerpc: Use Per_CPU_Control::isr_dispatch_disable

2016-11-15 Thread Sebastian Huber
Update #2751. --- .../bspsupport/ppc_exc_async_normal.S | 78 -- c/src/lib/libcpu/powerpc/new-exceptions/cpu_asm.S | 8 ++- cpukit/score/cpu/powerpc/cpu.c | 1 + cpukit/score/cpu/powerpc/rtems/score/cpu.h | 6 +- 4 files changed, 71

[PATCH 03/26] posix: Simplify cleanup push/pop

2016-11-15 Thread Sebastian Huber
The POSIX cleanup list must be proteced from asynchronous thread deletion. Here local interrupt disable is sufficient. --- cpukit/posix/src/cleanuppush.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/cpukit/posix/src/cleanuppush.c b/cpukit/posix/src/cl

[PATCH 04/26] score: Remove obsolete defines

2016-11-15 Thread Sebastian Huber
The thread dispatch inline option is no longer used. --- cpukit/score/cpu/arm/rtems/score/cpu.h| 7 --- cpukit/score/cpu/bfin/rtems/score/cpu.h | 23 -- cpukit/score/cpu/epiphany/rtems/score/cpu.h | 20 --- cpukit/score/cpu/i386/

[PATCH 25/26] score: Add _ISR_Is_enabled()

2016-11-15 Thread Sebastian Huber
In contrast to _ISR_Get_level() the _ISR_Is_enabled() function evaluates a level parameter and returns a boolean value. Update #2811. --- cpukit/score/cpu/arm/rtems/score/cpu.h | 11 +-- cpukit/score/cpu/bfin/rtems/score/cpu.h | 5 + cpukit/score/cpu/epiphany/rtems/score/c

[PATCH 09/26] sparc64: Rename CPU_Minimum_stack_frame

2016-11-15 Thread Sebastian Huber
Rename SPARC64-specific CPU_Minimum_stack_frame to SPARC64_Minimum_stack_frame. Rename SPARC64-specific CPU_MINIMUM_STACK_FRAME_SIZE to SPARC64_MINIMUM_STACK_FRAME_SIZE. Update #2809. --- c/src/lib/libbsp/sparc64/shared/start/start.S | 4 +- c/src/lib/libcpu/sparc64/shared/score/interrupt.S

[PATCH 11/26] sparc: Move CPU_Interrupt_frame related defines

2016-11-15 Thread Sebastian Huber
Move CPU_Interrupt_frame related defines to . Update #2809. --- c/src/lib/libbsp/sparc/shared/irq_asm.S| 2 +- cpukit/score/cpu/sparc/cpu.c | 7 ++- cpukit/score/cpu/sparc/rtems/score/cpu.h | 50 - cpukit/score/cpu/sparc/rtems/scor

[PATCH 18/26] score: Allow interrupts during thread dispatch

2016-11-15 Thread Sebastian Huber
Use a processor-specific interrupt frame during context switches in case the executing thread is longer executes on the processor and the heir thread is about to start execution. During this period we must not use a thread stack for interrupt processing. Update #2809. --- c/src/lib/libbsp/sparc/

[PATCH 05/26] score: Add and use _Thread_Dispatch_direct()

2016-11-15 Thread Sebastian Huber
This function is useful for operations which synchronously block, e.g. self restart, self deletion, yield, sleep. It helps to detect if these operations are called in the wrong context. Since the thread dispatch necessary indicator is not used, this is more robust in some SMP situations. Update

[PATCH 21/26] arm: Simplify _ARMV4_Exception_interrupt

2016-11-15 Thread Sebastian Huber
Move profiling code closer to bsp_interrupt_disable() to allow re-use of r9 later. --- cpukit/score/cpu/arm/arm_exc_interrupt.S | 40 ++-- 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/cpukit/score/cpu/arm/arm_exc_interrupt.S b/cpukit/score/cpu/arm/ar

[PATCH 20/26] arm: Use local labels

2016-11-15 Thread Sebastian Huber
--- cpukit/score/cpu/arm/arm_exc_interrupt.S | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/cpukit/score/cpu/arm/arm_exc_interrupt.S b/cpukit/score/cpu/arm/arm_exc_interrupt.S index 61a9c3e..28da989 100644 --- a/cpukit/score/cpu/arm/arm_exc_interrupt.S +++

[PATCH 01/26] arm: Use TPIDRPRW for current per-CPU control

2016-11-15 Thread Sebastian Huber
Use the previously unused TPIDRPRW register to get the per-CPU control of the current processor. This avoids instructions in GET_SELF_CPU_CONTROL which are not available in Thumb mode. --- c/src/lib/libbsp/arm/shared/start/start.S | 18 +- cpukit/score/cpu/arm/arm_exc_interrupt.S

[PATCH 13/26] powerpc: Move legacy CPU_Interrupt_frame

2016-11-15 Thread Sebastian Huber
The only remaining user of CPU_Interrupt_frame on PowerPC is the mpc5xx support. Move it to here. Update #2809. --- c/src/lib/libbsp/powerpc/ss555/irq/irq.h | 1 - c/src/lib/libcpu/powerpc/mpc5xx/irq/irq.h | 33 ++ cpukit/score/cpu/powerpc/rtems/score/cpu.h | 31 -

[PATCH 10/26] sparc: Rename CPU_Minimum_stack_frame

2016-11-15 Thread Sebastian Huber
Rename SPARC-specific CPU_Minimum_stack_frame to SPARC_Minimum_stack_frame. Rename SPARC-specific CPU_MINIMUM_STACK_FRAME_SIZE to SPARC_MINIMUM_STACK_FRAME_SIZE. Update #2809. --- c/src/lib/libbsp/sparc/shared/irq_asm.S| 8 ++-- c/src/lib/libbsp/sparc/shared/start/start.S|

[PATCH 08/26] rtems: Conditionally define rtems_interrupt_frame

2016-11-15 Thread Sebastian Huber
Update #2808. --- cpukit/rtems/include/rtems/rtems/types.h| 7 ++- cpukit/score/cpu/arm/rtems/score/cpu.h | 2 +- cpukit/score/cpu/bfin/rtems/score/cpu.h | 2 +- cpukit/score/cpu/epiphany/rtems/score/cpu.h | 2 +- cpukit/score/cpu/i386/rtems/score/cpu.h | 2 +- cpukit/score/cp

Performance and robustness improvements

2016-11-15 Thread Sebastian Huber
This patch set addresses the following tickets: https://devel.rtems.org/ticket/2751 https://devel.rtems.org/ticket/2808 https://devel.rtems.org/ticket/2809 https://devel.rtems.org/ticket/2811 ___ devel mailing list devel@rtems.org http://lists.rtems.org

[PATCH 12/26] bsps/powerpc: Avoid use of CPU_Interrupt_frame

2016-11-15 Thread Sebastian Huber
This type is not relevant for the code since only a pointer is passed around. Update #2809. --- c/src/lib/libcpu/powerpc/ppc403/irq/ictrl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/c/src/lib/libcpu/powerpc/ppc403/irq/ictrl.c b/c/src/lib/libcpu/powerpc/ppc403/irq/

[PATCH 07/26] bsps/mips: Use

2016-11-15 Thread Sebastian Huber
Avoid duplicate mips_vector_isr_handlers() declarations. --- c/src/lib/libbsp/mips/csb350/irq/vectorisrs.c | 2 +- c/src/lib/libbsp/mips/hurricane/irq/vectorisrs.c | 2 +- c/src/lib/libbsp/mips/jmr3904/irq/vectorisrs.c| 3 +-- c/src/lib/libbsp/mips/malta/irq/vectorisrs.c

Re: Update virtio network driver

2016-11-15 Thread Pavel Pisa
Hello Jin-Hyun, On Tuesday 15 of November 2016 11:29:05 Pavel Pisa wrote: > Hello Jin-Hyun, > > thanks for update. > > I have returned from my USA holydays now and catching up > with e-mails and work backlogs. > > On Thursday 10 of November 2016 10:42:34 Jinhyun wrote: > > Hi, all! > > > > We remo

Re: Update virtio network driver

2016-11-15 Thread Pavel Pisa
Hello Jin-Hyun, thanks for update. I have returned from my USA holydays now and catching up with e-mails and work backlogs. On Thursday 10 of November 2016 10:42:34 Jinhyun wrote: > Hi, all! > > We removed our RTEMS-virtio driver's dependencies on architecture. We used > built-in function of gcc