Re: [PATCH-V3 1/1] sparc: Fix context switch on SMP

2015-11-16 Thread Gedare Bloom
On Mon, Nov 16, 2015 at 2:31 PM, Sebastian Huber wrote: > > > - Am 16. Nov 2015 um 17:06 schrieb Gedare Bloom ged...@rtems.org: > >> Does this bug have a ticket? > > From my point of view we need a ticket, if > > 1) a bug cannot be fixed immediately or requires a couple of patches, or > > 2) a

Re: [PATCH-V3 1/1] sparc: Fix context switch on SMP

2015-11-16 Thread Sebastian Huber
- Am 16. Nov 2015 um 17:06 schrieb Gedare Bloom ged...@rtems.org: > Does this bug have a ticket? >From my point of view we need a ticket, if 1) a bug cannot be fixed immediately or requires a couple of patches, or 2) a new feature need several patches, accompanying documentation/reasons

Re: [PATCH-V3 1/1] sparc: Fix context switch on SMP

2015-11-16 Thread Gedare Bloom
Does this bug have a ticket? On Mon, Nov 16, 2015 at 10:05 AM, Daniel Cederman wrote: > Yes, definitely. Would you mind doing it? Daniel is away from office this > week and I do not have access. > > On 2015-11-16 15:57, Sebastian Huber wrote: >> >> Looks good, we should probably apply it to the 4

Re: [PATCH-V3 1/1] sparc: Fix context switch on SMP

2015-11-16 Thread Daniel Cederman
Yes, definitely. Would you mind doing it? Daniel is away from office this week and I do not have access. On 2015-11-16 15:57, Sebastian Huber wrote: Looks good, we should probably apply it to the 4.11 branch as well. -- Daniel Cederman Software Engineer Cobham Gaisler ___

Re: [PATCH-V3 1/1] sparc: Fix context switch on SMP

2015-11-16 Thread Sebastian Huber
Looks good, we should probably apply it to the 4.11 branch as well. -- 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 : Public key available

[PATCH-V3 1/1] sparc: Fix context switch on SMP

2015-11-16 Thread Daniel Cederman
We must not load registers (e.g. PSR) from the heir context area before the heir stopped execution. With this patch the write to PSR is divided into two steps. We first update the current window pointer and then we restore the status registers and enable traps. This allows us to move the first wri