freertos/xtensa_context.S: fix some dread tabs
This commit is contained in:
parent
d7d8b47b89
commit
5ce7a33c87
|
@ -161,7 +161,6 @@ _xt_context_save:
|
||||||
call0 xthal_save_extra_nw /* destroys a0,2,3,4,5 */
|
call0 xthal_save_extra_nw /* destroys a0,2,3,4,5 */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifndef __XTENSA_CALL0_ABI__
|
#ifndef __XTENSA_CALL0_ABI__
|
||||||
#ifdef XT_USE_OVLY
|
#ifdef XT_USE_OVLY
|
||||||
l32i a9, sp, XT_STK_PC /* recover saved PC */
|
l32i a9, sp, XT_STK_PC /* recover saved PC */
|
||||||
|
@ -169,22 +168,21 @@ _xt_context_save:
|
||||||
s32i a9, sp, XT_STK_OVLY /* save overlay state */
|
s32i a9, sp, XT_STK_OVLY /* save overlay state */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
rsr a2, PS /* We need to enable window execptions to */
|
rsr a2, PS /* We need to enable window execptions to */
|
||||||
movi a3, PS_INTLEVEL_MASK /* perform spill registers*/
|
movi a3, PS_INTLEVEL_MASK /* perform spill registers*/
|
||||||
and a2, a2, a3
|
and a2, a2, a3
|
||||||
bnez a2, _not_l1
|
bnez a2, _not_l1
|
||||||
rsr a2, PS
|
rsr a2, PS
|
||||||
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 */
|
||||||
|
|
||||||
_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)
|
||||||
and a2, a2, a3
|
and a2, a2, a3
|
||||||
wsr a2, PS
|
wsr a2, PS
|
||||||
rsync
|
rsync
|
||||||
|
|
||||||
addi sp, sp, XT_STK_FRMSZ /* go back to spill register region */
|
addi sp, sp, XT_STK_FRMSZ /* go back to spill register region */
|
||||||
SPILL_ALL_WINDOWS /* place the live register windows there */
|
SPILL_ALL_WINDOWS /* place the live register windows there */
|
||||||
addi sp, sp, -XT_STK_FRMSZ /* return the current stack pointer and proceed with conext save*/
|
addi sp, sp, -XT_STK_FRMSZ /* return the current stack pointer and proceed with conext save*/
|
||||||
|
|
Loading…
Reference in a new issue