kopia lustrzana https://github.com/espressif/esp-idf
freertos/xtensa_context.S: fix some dread tabs
rodzic
d7d8b47b89
commit
5ce7a33c87
|
@ -161,7 +161,6 @@ _xt_context_save:
|
|||
call0 xthal_save_extra_nw /* destroys a0,2,3,4,5 */
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef __XTENSA_CALL0_ABI__
|
||||
#ifdef XT_USE_OVLY
|
||||
l32i a9, sp, XT_STK_PC /* recover saved PC */
|
||||
|
@ -169,20 +168,19 @@ _xt_context_save:
|
|||
s32i a9, sp, XT_STK_OVLY /* save overlay state */
|
||||
#endif
|
||||
|
||||
rsr a2, PS /* We need to enable window execptions to */
|
||||
movi a3, PS_INTLEVEL_MASK /* perform spill registers*/
|
||||
and a2, a2, a3
|
||||
bnez a2, _not_l1
|
||||
rsr a2, PS
|
||||
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 */
|
||||
wsr a2, PS /* do this manually */
|
||||
|
||||
rsr a2, PS /* We need to enable window execptions to */
|
||||
movi a3, PS_INTLEVEL_MASK /* perform spill registers*/
|
||||
and a2, a2, a3
|
||||
bnez a2, _not_l1
|
||||
rsr a2, PS
|
||||
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 */
|
||||
wsr a2, PS /* do this manually */
|
||||
_not_l1:
|
||||
rsr a2, PS /* finally umask the window exceptions */
|
||||
movi a3, ~(PS_EXCM_MASK)
|
||||
and a2, a2, a3
|
||||
wsr a2, PS
|
||||
rsr a2, PS /* finally umask the window exceptions */
|
||||
movi a3, ~(PS_EXCM_MASK)
|
||||
and a2, a2, a3
|
||||
wsr a2, PS
|
||||
rsync
|
||||
|
||||
addi sp, sp, XT_STK_FRMSZ /* go back to spill register region */
|
||||
|
|
Ładowanie…
Reference in New Issue