mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-03 12:44:33 +02:00
freertos: Fix save_context. Add RSYNC after WSR
RSYNC waits for all previously fetched WSR.* instructions to be performed before inter- preting the register fields of the next instruction.
This commit is contained in:
committed by
bot
parent
c0d12988d3
commit
1687c53700
@@ -174,6 +174,7 @@ _xt_context_save:
|
|||||||
movi a3, PS_INTLEVEL(1) /* For some curious reason the level 1 interrupts */
|
movi a3, PS_INTLEVEL(1) /* For some curious reason the level 1 interrupts */
|
||||||
or a2, a2, a3 /* dont set the intlevel correctly on PS, we need to */
|
or a2, a2, a3 /* dont set the intlevel correctly on PS, we need to */
|
||||||
wsr a2, PS /* do this manually */
|
wsr a2, PS /* do this manually */
|
||||||
|
rsync
|
||||||
_not_l1:
|
_not_l1:
|
||||||
rsr a2, PS /* finally umask the window exceptions */
|
rsr a2, PS /* finally umask the window exceptions */
|
||||||
movi a3, ~(PS_EXCM_MASK)
|
movi a3, ~(PS_EXCM_MASK)
|
||||||
|
Reference in New Issue
Block a user