Skip to content

Commit 97abfd5

Browse files
abrodkinvineetgarc
authored andcommitted
ARCv2: entry: early return from exception need not clear U & DE bits
Exception handlers call FAKE_RET_FROM_EXCPN to - clear AE bit: drop down from exception active to pure kernel mode allowing further excptions - set IE bit: re-enable interrupts It additionally also clears U bit (user mode) and DE bit (delay slot execution) which is redundant as hardware does that already on any taken exception. Morevoer the current software clearing is bogus anyways as the KFLAG instruction being used for purpose can't possibly write those bits anyways. So don't pretend to clear them. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com> Signed-off-by: Vineet Gupta <vgupta@synopsys.com> [vgupta: rewrote changelog]
1 parent 5f9e832 commit 97abfd5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/arc/include/asm/entry-arcv2.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@
256256

257257
.macro FAKE_RET_FROM_EXCPN
258258
lr r9, [status32]
259-
bic r9, r9, (STATUS_U_MASK|STATUS_DE_MASK|STATUS_AE_MASK)
259+
bic r9, r9, STATUS_AE_MASK
260260
or r9, r9, STATUS_IE_MASK
261261
kflag r9
262262
.endm

0 commit comments

Comments
 (0)