commit | fd1e5aebc0ba2af09502ecb2c9f756378c86bc8e | [log] [tgz] |
---|---|---|
author | Jim Shu <cwshu@andestech.com> | Sun Jul 18 02:07:48 2021 +0800 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Tue Jan 11 11:47:03 2022 +0100 |
tree | 8be2dbc0d90bf0f8388dcef1502d36b2d1a8d276 | |
parent | 3f16fdefbf30d906f2999ad35104b757138c6c1b [diff] |
arch: riscv: fix sp of supervisor thread in _Fault function. Although CONFIG_USERSPACE is enabled, there are supervisor threads who don't have privileged stack using exception handler. Only let user threads to switch to privileged stack in exception handler. Signed-off-by: Jim Shu <cwshu@andestech.com>