zephyr/arch
Daniel Leung c1a462e1a5 xtensa: mmu: bail on semantic triple faults
There actually is no triple faults on Xtensa. Once PS.EXCM is
set, it keeps going through double exception vector for any
new exceptions. However, our exception code needs to unmask
PS.EXCM to enable register window operations. So after that,
any new exceptions will go through the kernel or user vectors
depending on PS.UM. If there is continuous faults, it may
keep ping-ponging between double and kernel/user exception
vectors that may never get resolved. Since we stash DEPC
during double exception, and the stashed one is only cleared
once the double exception has been processed, we can use
the stashed DEPC value to detect if the next exception could
be considered a triple fault. If such a case exists, simply
jump to an infinite loop, or quit the simulator, or invoke
debugger.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2024-06-15 04:44:48 -04:00
..
arc ARC: enable barriers for HS 2024-06-14 15:38:39 +02:00
arm arch: arm: cortex_m: update inline comment pointing to isr_wrapper.* 2024-06-12 18:29:12 -04:00
arm64 arm64: move simple memcpy/memset alternatives to assembly 2024-06-14 17:11:40 -04:00
common arch: common: Removed unnecessary cast 2024-06-07 19:05:08 -04:00
mips arch: remove the use of z_arch_esf_t completely from internal 2024-06-04 14:02:51 -05:00
nios2 arch: remove the use of z_arch_esf_t completely from internal 2024-06-04 14:02:51 -05:00
posix build: namespace the generated headers with zephyr/ 2024-05-28 22:03:55 +02:00
riscv arch: riscv: stacktrace: conditionally check stack_info 2024-06-14 05:22:59 -04:00
sparc arch: remove the use of z_arch_esf_t completely from internal 2024-06-04 14:02:51 -05:00
x86 kernel: mm: rename z_page_fault() to k_mem_page_fault() 2024-06-12 21:13:26 -04:00
xtensa xtensa: mmu: bail on semantic triple faults 2024-06-15 04:44:48 -04:00
archs.yml hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
CMakeLists.txt
Kconfig soc: esp32c6: Kconfig and .ld updates, DTS and comments fix 2024-06-14 18:51:46 -04:00
Kconfig.v1 hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
Kconfig.v2 hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00