#2472 closed defect (fixed)
Wrong value in PSR register after task switch on SPARC
Reported by: | daniel.cederman | Owned by: | Daniel Cederman <cederman@…> |
---|---|---|---|
Priority: | normal | Milestone: | 4.11 |
Component: | arch/sparc | Version: | 4.11 |
Severity: | critical | Keywords: | |
Cc: | Blocked By: | ||
Blocking: |
Description
The task switching code does not update the PSR if the heir changes during the switch (which happens if the original heir gets scheduled on another CPU). This can only happen with the SMP version of the code.
This can cause the FPU to be disabled and cause instructions that depends on condition codes to behave wrongly.
It can be solved by updating the PSR after the heir task has been acquired, instead of before.
Change History (2)
comment:1 Changed on 11/17/15 at 07:59:53 by Daniel Cederman <cederman@…>
Owner: | set to Daniel Cederman <cederman@…> |
---|---|
Resolution: | → fixed |
Status: | new → closed |
comment:2 Changed on 10/10/17 at 06:22:51 by Sebastian Huber
Component: | SMP → arch/sparc |
---|
Note: See
TracTickets for help on using
tickets.
In [changeset:"2d7aad73ea79fdfd80fa466233c7dbeceb98d43c/rtems"]: