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

2015-11-17 Thread Sebastian Huber
Thanks, I check in this patch on the 4.11 branch. -- 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 on request.

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

2015-11-17 Thread Daniel Cederman
Great, thanks! On 2015-11-17 09:01, Sebastian Huber wrote: Thanks, I check in this patch on the 4.11 branch. -- Daniel Cederman Software Engineer Cobham Gaisler ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel

[PATCH-V4 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