commit | 1f46f6dedc282d0010f939863eb096cb06bef013 | [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 | ea954529c34d0bd53916d0bd71b076dfaea33447 [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>