commit | 10753ef8fd14dfe1d41ec253966569de19463adc | [log] [tgz] |
---|---|---|
author | Bin Meng <bmeng.cn@gmail.com> | Wed Dec 12 06:12:43 2018 -0800 |
committer | Andes <uboot@andestech.com> | Tue Dec 18 09:56:27 2018 +0800 |
tree | 172dde763aa535bab9a515bcb90de35da1196e57 | |
parent | 496262cca63f25408c6715b39cea1747e8ce9b59 [diff] |
riscv: Return to previous privilege level after trap handling At present the trap handler returns to hardcoded M-mode/S-mode. Change to returning to previous privilege level instead. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Lukas Auer <lukas.auer@aisec.fraunhofer.de> Reviewed-by: Anup Patel <anup@brainfault.org>