Skip to content
Commit ba263da9 authored by Jimmy Zheng's avatar Jimmy Zheng Committed by Anas Nashif
Browse files

arch: riscv: fix exception_depth with RISCV_ALWAYS_SWITCH_THROUGH_ECALL



When 'arch_switch()' switches though Ecall, 'exception_depth' is
incorrectly added to the next thread because the current thread is updated
before arch_switch().
Add 'exception_depth' back to the previous thread when Ecall is called from
'arch_switch()'.

Signed-off-by: default avatarJimmy Zheng <jimmyzhe@andestech.com>
parent 89f3d220
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment