mirror of
https://github.com/apache/nuttx.git
synced 2026-08-08 05:57:16 +00:00
xtensa_macros.S: fix tab/space mismatches
This commit is contained in:
parent
56f57e5f9b
commit
08dcef4de0
1 changed files with 8 additions and 8 deletions
|
|
@ -42,32 +42,32 @@
|
|||
****************************************************************************/
|
||||
|
||||
#if !defined(CONFIG_SMP) && CONFIG_ARCH_INTERRUPTSTACK > 15
|
||||
.macro setintstack tmp1 tmp2
|
||||
.macro setintstack tmp1 tmp2
|
||||
|
||||
/* Load g_intstacktop (the start of the interrupt stack) */
|
||||
|
||||
movi \tmp1, g_intstacktop
|
||||
|
||||
/* If a1 < g_intstackalloc (outside the interrupt stack boundary),
|
||||
/* If a1 < g_intstackalloc (outside the interrupt stack boundary),
|
||||
* set a1 (sp) to g_intstacktop (switch to the interrupt stack).
|
||||
*/
|
||||
|
||||
movi \tmp2, g_intstackalloc /* Load the end (low address) of the interrupt stack */
|
||||
sub \tmp2, a1, \tmp2
|
||||
movltz a1, \tmp1, \tmp2
|
||||
sub \tmp2, a1, \tmp2
|
||||
movltz a1, \tmp1, \tmp2
|
||||
|
||||
/* If a1 >= g_intstacktop, sp is outside the interrupt stack boundaries */
|
||||
/* If a1 >= g_intstacktop, sp is outside the interrupt stack boundaries */
|
||||
|
||||
movi \tmp2, g_intstacktop /* Load the start (high address) of the interrupt stack */
|
||||
sub \tmp2, a1, \tmp2
|
||||
movgez a1, \tmp1, \tmp2
|
||||
sub \tmp2, a1, \tmp2
|
||||
movgez a1, \tmp1, \tmp2
|
||||
|
||||
/* If neither movltz and movgez moved g_intstacktop (on /tmp1) to a1,
|
||||
* it means that the stack pointer was already pointing to the interrupt
|
||||
* stack and no action is required.
|
||||
*/
|
||||
|
||||
.endm
|
||||
.endm
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue