[PATCH 1/4] sparc: Disable FPU in interrupt context

2015-05-29 Thread Sebastian Huber
From: Alexander Krutwig alexander.krut...@embedded-brains.de Update #2270. --- c/src/lib/libbsp/sparc/shared/irq_asm.S | 30 ++ cpukit/score/cpu/sparc/cpu.c | 8 cpukit/score/cpu/sparc/rtems/score/cpu.h | 25 - 3 files

[PATCH 2/4] sparc: Avoid new window for FP save/restore

2015-05-29 Thread Sebastian Huber
Update #2270. --- cpukit/score/cpu/sparc/cpu_asm.S | 102 ++- 1 file changed, 48 insertions(+), 54 deletions(-) diff --git a/cpukit/score/cpu/sparc/cpu_asm.S b/cpukit/score/cpu/sparc/cpu_asm.S index 92674de..ddb2a13 100644 ---

[PATCH 4/4] sparc: Optimize non-deferred FP save/restore

2015-05-29 Thread Sebastian Huber
Update #2270. --- cpukit/score/cpu/sparc/cpu.c | 16 cpukit/score/cpu/sparc/cpu_asm.S | 44 cpukit/score/cpu/sparc/rtems/score/cpu.h | 22 ++-- 3 files changed, 80 insertions(+), 2 deletions(-) diff --git

[PATCH 3/4] sparc: Remove superfluous FP enable

2015-05-29 Thread Sebastian Huber
The FP context save/restore makes only sense in the context of FP threads. Update #2270. --- cpukit/score/cpu/sparc/cpu.c | 5 + cpukit/score/cpu/sparc/cpu_asm.S | 24 ++-- 2 files changed, 7 insertions(+), 22 deletions(-) diff --git a/cpukit/score/cpu/sparc/cpu.c

Re: [PATCH 2/4] sparc: Avoid new window for FP save/restore

2015-05-29 Thread Gedare Bloom
Straightforward leaf-optimization, except is there a reason to use jmp %o7 + 8 instead of ret? On Fri, May 29, 2015 at 8:54 AM, Sebastian Huber sebastian.hu...@embedded-brains.de wrote: Update #2270. --- cpukit/score/cpu/sparc/cpu_asm.S | 102 ++- 1 file

Re: [PATCH 1/4] sparc: Disable FPU in interrupt context

2015-05-29 Thread Gedare Bloom
I am missing something. When an interrupt happens, it disables floating point. Where does fp get re-enabled afterward? On Fri, May 29, 2015 at 8:54 AM, Sebastian Huber sebastian.hu...@embedded-brains.de wrote: From: Alexander Krutwig alexander.krut...@embedded-brains.de Update #2270. ---

RPI2 Cache configuration Was: Re: GSoC 2015: Raspberry Pi 2 Support

2015-05-29 Thread Gedare Bloom
On Thu, May 28, 2015 at 10:11 AM, Rohini Kulkarni krohini1...@gmail.com wrote: Hi All, I have to implement the cache coherency support for Cortex A7. But for A7 MPCore, unlike for A9, I am not able to find any register description for the Snoop Control Unit from the TRM. I need help here on

Re: [PATCH 2/4] sparc: Avoid new window for FP save/restore

2015-05-29 Thread Sebastian Huber
- Gedare Bloom ged...@gwu.edu schrieb: Straightforward leaf-optimization, except is there a reason to use jmp %o7 + 8 instead of ret? Hm, the GCC generates this instruction, is this the same as ret? -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim,

Re: [rtems commit] tmtests/tm26: Avoid NULL pointer access

2015-05-29 Thread Joel Sherrill
On May 29, 2015 10:45:27 AM CDT, Sebastian Huber sebastian.hu...@embedded-brains.de wrote: - Joel Sherrill joel.sherr...@oarcorp.com schrieb: On 5/29/2015 8:37 AM, Sebastian Huber wrote: Module:rtems Branch:master Commit:5611839a7e2e371dd1f327c336c785095f634e55

Re: [PATCH 2/4] sparc: Avoid new window for FP save/restore

2015-05-29 Thread Gedare Bloom
On Fri, May 29, 2015 at 10:46 AM, Sebastian Huber sebastian.hu...@embedded-brains.de wrote: - Gedare Bloom ged...@gwu.edu schrieb: Straightforward leaf-optimization, except is there a reason to use jmp %o7 + 8 instead of ret? Hm, the GCC generates this instruction, is this the same as

Re: [PATCH 1/4] sparc: Disable FPU in interrupt context

2015-05-29 Thread Sebastian Huber
- Gedare Bloom ged...@gwu.edu schrieb: I am missing something. When an interrupt happens, it disables floating point. Where does fp get re-enabled afterward? It gets enabled later when the original PSR is restored. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4,

Re: [rtems commit] tmtests/tm26: Avoid NULL pointer access

2015-05-29 Thread Sebastian Huber
- Joel Sherrill joel.sherr...@oarcorp.com schrieb: On 5/29/2015 8:37 AM, Sebastian Huber wrote: Module:rtems Branch:master Commit:5611839a7e2e371dd1f327c336c785095f634e55 Changeset: http://git.rtems.org/rtems/commit/?id=5611839a7e2e371dd1f327c336c785095f634e55

Re: [PATCH 2/4] sparc: Avoid new window for FP save/restore

2015-05-29 Thread Gedare Bloom
On Fri, May 29, 2015 at 11:37 AM, Gedare Bloom ged...@gwu.edu wrote: On Fri, May 29, 2015 at 10:46 AM, Sebastian Huber sebastian.hu...@embedded-brains.de wrote: - Gedare Bloom ged...@gwu.edu schrieb: Straightforward leaf-optimization, except is there a reason to use jmp %o7 + 8 instead

[PATCH] tmtests/tm26: Fix context switch to FP task

2015-05-29 Thread Sebastian Huber
It is wrong to restore the floating point context here. The _Context_Switch() ends up in _Thread_Handler() which will call _Thread_Restore_fp(). In _Thread_Do_dispatch() the FP restore is after the context switch. --- testsuites/tmtests/tm26/task1.c | 3 --- 1 file changed, 3 deletions(-) diff

Re: [PATCH 4/4] sparc: Optimize non-deferred FP save/restore

2015-05-29 Thread Gedare Bloom
On Fri, May 29, 2015 at 8:54 AM, Sebastian Huber sebastian.hu...@embedded-brains.de wrote: Update #2270. --- cpukit/score/cpu/sparc/cpu.c | 16 cpukit/score/cpu/sparc/cpu_asm.S | 44 cpukit/score/cpu/sparc/rtems/score/cpu.h

Re: [rtems commit] tmtests/tm26: Avoid NULL pointer access

2015-05-29 Thread Joel Sherrill
On 5/29/2015 8:37 AM, Sebastian Huber wrote: Module:rtems Branch:master Commit:5611839a7e2e371dd1f327c336c785095f634e55 Changeset: http://git.rtems.org/rtems/commit/?id=5611839a7e2e371dd1f327c336c785095f634e55 Author:Sebastian Huber sebastian.hu...@embedded-brains.de Date: