Re: [PATCH] sparc: Fix context switch on SMP

2015-11-12 Thread Sebastian Huber
This patch is broken since we clear the is executing indicator before we flush all windows. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.hu...@embedded-brains.de PGP

[PATCH 6/7] bsp/tms570: separate Flash variants to one which boots directly and one for boot loader.

2015-11-12 Thread Pavel Pisa
From: Premysl Houdek The default tms570ls3137_hdk variant is for building RTEMS application image starting directly from start of Flash. Variant tms570ls3137_hdk_with_loader skips 256kB at start of Flash to allow use with application loader. Signed-off-by: Pavel Pisa --- c/src/lib/libbsp/arm/

[PATCH 5/7] bsp/tms570: use POM only when application image does not start at address 0.

2015-11-12 Thread Pavel Pisa
Parameters overlay module is initialized and cleared first. It is used later to replace exception target vectors only if that is required. The application loader code with CPU and SDRAM setup code has to provide well defined pattern of instructions at addresses 0x and 0x001f, because o

[PATCH 4/7] bsp/tms570: updated reserved space for vector overlay in internal RAM

2015-11-12 Thread Pavel Pisa
From: Premysl Houdek --- c/src/lib/libbsp/arm/tms570/startup/linkcmds.tms570ls3137_hdk| 3 ++- c/src/lib/libbsp/arm/tms570/startup/linkcmds.tms570ls3137_hdk_intram | 4 ++-- c/src/lib/libbsp/arm/tms570/startup/linkcmds.tms570ls3137_hdk_sdram | 3 ++- 3 files changed, 6 insertions(+), 4

[PATCH 7/7] bsp/tms570: use common tms570ls3137.inc file for all board ling variants.

2015-11-12 Thread Pavel Pisa
Signed-off-by: Pavel Pisa --- .../libbsp/arm/tms570/make/custom/tms570ls3137.inc | 20 .../arm/tms570/make/custom/tms570ls3137_hdk.cfg | 17 + .../tms570/make/custom/tms570ls3137_hdk_intram.cfg | 17 + .../tms570/make/custom/tms570ls31

[PATCH 3/7] bsp/tms570: fixed sci driver freeze when closing terminal bug

2015-11-12 Thread Pavel Pisa
From: Premysl Houdek tms570_sci_interrupt_last_close: do not wait for old data transmit. Signed-off-by: Premysl Houdek --- c/src/lib/libbsp/arm/tms570/console/tms570-sci.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/c/src/lib/libbsp/arm/tms570/console/tms570-sci

[PATCH 1/7] bsp/tms570: EMAC control header file corrected and EMAC interrupt vector added

2015-11-12 Thread Pavel Pisa
From: Premysl Houdek Signed-off-by: Premysl Houdek Signed-off-by: Pavel Pisa --- c/src/lib/libbsp/arm/tms570/Makefile.am| 2 +- c/src/lib/libbsp/arm/tms570/include/irq.h | 4 + .../libbsp/arm/tms570/include/ti_herc/reg_emac.h | 230 - .../libbsp/arm/t

[PATCH 2/7] bsp/tms570: Pinmux support and EMAC pin definition added

2015-11-12 Thread Pavel Pisa
From: Premysl Houdek Signed-off-by: Premysl Houdek --- c/src/lib/libbsp/arm/tms570/Makefile.am| 3 +- .../lib/libbsp/arm/tms570/include/tms570-pinmux.h | 122 + c/src/lib/libbsp/arm/tms570/pinmux/pinmux.c| 88 +++ c/src/lib/libbsp/arm/tms5

[PATCH 0/7] TMS570 BSP corrections and update

2015-11-12 Thread Pavel Pisa
Hello all, there are changes we have discusses in previous exchange. Pavel Pisa (2): bsp/tms570: use POM only when application image does not start at address 0. bsp/tms570: use common tms570ls3137.inc file for all board ling variants. Premysl Houdek (5): bsp/tms570: EMAC control h

[PATCH] sparc: Fix context switch on SMP

2015-11-12 Thread Sebastian Huber
We must not load registers (e.g. PSR) from the heir context area before the heir stopped execution. Bug reported by Daniel Cederman. --- c/src/lib/libbsp/sparc/shared/irq_asm.S | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/c/src/lib/libbsp/

Re: PSR register not getting updated

2015-11-12 Thread Daniel Cederman
When I think a bit more of it, one probably should update the PSR after the heir has been acquired, as the task could potentially be acquired and released again with a new PSR by another core before the swap. On 2015-11-12 11:27, Daniel Cederman wrote: Hello, I experienced a bug when using 4.

[PATCH 1/1] sparc: Update PSR register when heir changes

2015-11-12 Thread Daniel Cederman
The PSR register holds condition codes, the FPU enable bit, and similar, which needs to be restored properly when switching task. --- c/src/lib/libbsp/sparc/shared/irq_asm.S | 8 1 file changed, 8 insertions(+) diff --git a/c/src/lib/libbsp/sparc/shared/irq_asm.S b/c/src/lib/libbsp/spar

PSR register not getting updated

2015-11-12 Thread Daniel Cederman
Hello, I experienced a bug when using 4.11 SMP on a LEON4 system. One of the tasks in my program suddenly lost the FPU enable bit in the PSR register after a task switch. I tracked down the problem being due to the task switching code not updating the PSR if the heir changes during the switch