xtensa: rsync before reading ZSR_FLUSH
The Xtensa ISA reference manual says to do rsync after wsr to make sure register is updated before rsr. So do that. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
a4367eb514
commit
d9f6882071
1 changed files with 1 additions and 0 deletions
|
@ -264,6 +264,7 @@ xtensa_switch:
|
|||
/* Flush the stack. The top of stack was stored for us by
|
||||
* arch_cohere_stacks(). It can be NULL for a dummy thread.
|
||||
*/
|
||||
rsync
|
||||
rsr a0, ZSR_FLUSH
|
||||
beqz a0, noflush
|
||||
mov a3, a1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue