Skip to content

Commit 4e96274

Browse files
jcmvbkbcczankel
authored andcommitted
xtensa: clean up stpill_registers
- remove unused asm parameters; - fix EXCM bit setting in the PS SR during _spill_registers call. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Chris Zankel <chris@zankel.net>
1 parent f4b93ba commit 4e96274

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎arch/xtensa/include/asm/traps.h‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,9 @@ extern void do_unhandled(struct pt_regs *regs, unsigned long exccause);
2222

2323
static inline void spill_registers(void)
2424
{
25-
unsigned int a0, ps;
2625

2726
__asm__ __volatile__ (
28-
"movi a14, " __stringify(PS_EXCM_BIT | LOCKLEVEL) "\n\t"
27+
"movi a14, "__stringify((1 << PS_EXCM_BIT) | LOCKLEVEL)"\n\t"
2928
"mov a12, a0\n\t"
3029
"rsr a13, sar\n\t"
3130
"xsr a14, ps\n\t"
@@ -35,7 +34,7 @@ static inline void spill_registers(void)
3534
"mov a0, a12\n\t"
3635
"wsr a13, sar\n\t"
3736
"wsr a14, ps\n\t"
38-
: : "a" (&a0), "a" (&ps)
37+
: :
3938
#if defined(CONFIG_FRAME_POINTER)
4039
: "a2", "a3", "a4", "a11", "a12", "a13", "a14", "a15",
4140
#else

0 commit comments

Comments
 (0)