diff options
| author | Samuel Holland <[email protected]> | 2021-08-14 08:41:47 -0500 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2021-08-20 09:47:40 +0530 |
| commit | ee274377b2a0f26400281a2ccb00b6e15c3f5716 (patch) | |
| tree | 41db4de2d04ecd57c05fd9030d9386674d80c57a /lib/utils/timer/fdt_timer_mtimer.c | |
| parent | 33eac764f22ba4d0a22980ff4f130eadb9502a2f (diff) | |
lib: sbi_trap: Restore redirect for access faults
commit 764a17d852a8 ("lib: sbi: Implement firmware counters") added
switch cases for CAUSE_LOAD_ACCESS and CAUSE_STORE_ACCESS. This caused
them to stop being redirected to U or S mode, as that is handled in the
default switch case. As a result, an error in userspace could cause the
system to hang. Fix this by allowing the acces fault case to fall
through to the default case.
Fixes: 764a17d852a8 ("lib: sbi: Implement firmware counters")
Signed-off-by: Samuel Holland <[email protected]>
Reviewed-by: Atish Patra <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
Diffstat (limited to 'lib/utils/timer/fdt_timer_mtimer.c')
0 files changed, 0 insertions, 0 deletions
