Skip to content

Commit 5c18a00

Browse files
peter-mitsiscarlescufi
authored andcommitted
arch: xtensa: Use wsr.lowercase over wsr.UPPERCASE
wsr.UPPERCASE can lead to compiler errors when UPPERCASE matches a macro defined in the special register header file. Signed-off-by: Peter Mitsis <[email protected]>
1 parent 2075a1b commit 5c18a00

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

arch/xtensa/include/xtensa_asm2_s.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ _xstack_call0_\@:
371371
entry a1, 16
372372
mov a1, a2
373373
rsr.ZSR_EPS a2
374-
wsr.PS a2
374+
wsr.ps a2
375375
call4 _xstack_call1_\@
376376
mov a2, a6 /* copy return value */
377377
retw
@@ -439,7 +439,7 @@ _xstack_returned_\@:
439439
rsr.ps a0
440440
movi a3, PS_INTLEVEL(1)
441441
or a0, a0, a3
442-
wsr.PS a0
442+
wsr.ps a0
443443
_not_l1:
444444

445445
/* Setting up the cross stack call below has states where the
@@ -459,7 +459,7 @@ _xstack_returned_\@:
459459
movi a3, ~(PS_EXCM_MASK) & ~(PS_RING_MASK)
460460
and a0, a0, a3
461461
wsr.ZSR_EPS a0
462-
wsr.PS a0
462+
wsr.ps a0
463463
rsync
464464

465465
/* A1 already contains our saved stack, and A2 our handler.

0 commit comments

Comments
 (0)