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 <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2024-04-08 17:47:38 -07:00 committed by Anas Nashif
parent b696257eb2
commit 371ad016f8

View file

@ -370,15 +370,14 @@ void *xtensa_excint1_c(void *esf)
_current_cpu->nested = 1;
}
#if defined(CONFIG_XTENSA_MMU) || defined(CONFIG_XTENSA_MPU)
#ifdef CONFIG_USERSPACE
fixup_out:
#endif
#if defined(CONFIG_XTENSA_MMU)
if (is_dblexc) {
__asm__ volatile("wsr.depc %0" : : "r"(0));
}
#endif /* CONFIG_XTENSA_MMU || CONFIG_XTENSA_MPU */
#endif /* CONFIG_XTENSA_MMU */
return return_to(interrupted_stack);
}