Skip to content

Commit 371ad01

Browse files
dcpleungnashif
authored andcommitted
xtensa: no need to clear DEPC on C handler exit for MPU
Xtensa MPU code does not handle double exception in C. So there is no need to clear DEPC on C handler exit. Signed-off-by: Daniel Leung <[email protected]>
1 parent b696257 commit 371ad01

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

arch/xtensa/core/vector_handlers.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -370,15 +370,14 @@ void *xtensa_excint1_c(void *esf)
370370
_current_cpu->nested = 1;
371371
}
372372

373-
#if defined(CONFIG_XTENSA_MMU) || defined(CONFIG_XTENSA_MPU)
374373
#ifdef CONFIG_USERSPACE
375374
fixup_out:
376375
#endif
376+
#if defined(CONFIG_XTENSA_MMU)
377377
if (is_dblexc) {
378378
__asm__ volatile("wsr.depc %0" : : "r"(0));
379379
}
380-
#endif /* CONFIG_XTENSA_MMU || CONFIG_XTENSA_MPU */
381-
380+
#endif /* CONFIG_XTENSA_MMU */
382381

383382
return return_to(interrupted_stack);
384383
}

0 commit comments

Comments
 (0)