Skip to content
Commit bc3e77b3 authored by Daniel Leung's avatar Daniel Leung Committed by Anas Nashif
Browse files

xtensa: make it work with TLB misses during interrupt handling



If there are any TLB misses during interrupt handling,
the user, kernel and double exception vector will be triggered
for the miss and the DEPC and EXCCAUSE overwritten as the TLB
missse are be handled in the assembly code and execution
returned to the original vector code. Because of this, both
DEPC and EXCCAUSE being read in the C handler are not the ones
that triggered the original exception (for example, level-1
interrupt). So stash both DEPC and EXCCAUSE such that
the original cause of exception is visible in the C handler.

Signed-off-by: default avatarDaniel Leung <daniel.leung@intel.com>
parent 371ad016
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment