xtensa_macros.S: fix tab/space mismatches

This commit is contained in:
YAMAMOTO Takashi
2024-09-25 19:24:21 +09:00
committed by Xiang Xiao
parent 56f57e5f9b
commit 08dcef4de0
+8 -8
View File
@@ -42,32 +42,32 @@
****************************************************************************/ ****************************************************************************/
#if !defined(CONFIG_SMP) && CONFIG_ARCH_INTERRUPTSTACK > 15 #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) */ /* Load g_intstacktop (the start of the interrupt stack) */
movi \tmp1, g_intstacktop 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). * set a1 (sp) to g_intstacktop (switch to the interrupt stack).
*/ */
movi \tmp2, g_intstackalloc /* Load the end (low address) of the interrupt stack */ movi \tmp2, g_intstackalloc /* Load the end (low address) of the interrupt stack */
sub \tmp2, a1, \tmp2 sub \tmp2, a1, \tmp2
movltz a1, \tmp1, \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 */ movi \tmp2, g_intstacktop /* Load the start (high address) of the interrupt stack */
sub \tmp2, a1, \tmp2 sub \tmp2, a1, \tmp2
movgez a1, \tmp1, \tmp2 movgez a1, \tmp1, \tmp2
/* If neither movltz and movgez moved g_intstacktop (on /tmp1) to a1, /* If neither movltz and movgez moved g_intstacktop (on /tmp1) to a1,
* it means that the stack pointer was already pointing to the interrupt * it means that the stack pointer was already pointing to the interrupt
* stack and no action is required. * stack and no action is required.
*/ */
.endm .endm
#endif #endif
/**************************************************************************** /****************************************************************************