Skip to content

Commit

Permalink
xtensa: fix inline assembly of rsil in exception code for XCC
Browse files Browse the repository at this point in the history
Commit 4084726 added inline
assembly to lock interrupt. However, XCC doesn't like the syntax
using STRINGIFY, and also an empty clobber section. So parameterize
the second argument to rsil, and remove the last colon.

Signed-off-by: Daniel Leung <[email protected]>
  • Loading branch information
dcpleung committed Apr 13, 2023
1 parent 06d4a8b commit 7faed58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/xtensa/core/xtensa-asm2.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,8 @@ void *xtensa_excint1_c(int *interrupted_stack)
* resulting it being zero before switching to another
* thread.
*/
__asm__ volatile("rsil %0, " STRINGIFY(XCHAL_NMILEVEL)
: "=r" (ignore) : : );
__asm__ volatile("rsil %0, %1"
: "=r" (ignore) : "i"(XCHAL_NMILEVEL));

_current_cpu->nested = 1;
}
Expand Down

0 comments on commit 7faed58

Please sign in to comment.