diff options
author | Andrew Waterman <andrew@sifive.com> | 2023-03-16 17:02:49 -0700 |
---|---|---|
committer | Andrew Waterman <andrew@sifive.com> | 2023-03-16 17:02:49 -0700 |
commit | 4fabfb4e0d3eacc1dc791da70e342e4b68ea7e46 (patch) | |
tree | 0e385137fcee6dac636682eb586da8b1d6ca15e9 /v | |
parent | 91754f96c020bc9ff0bb206ea8ee9a102ee9c842 (diff) | |
download | env-4fabfb4e0d3eacc1dc791da70e342e4b68ea7e46.zip env-4fabfb4e0d3eacc1dc791da70e342e4b68ea7e46.tar.gz env-4fabfb4e0d3eacc1dc791da70e342e4b68ea7e46.tar.bz2 |
Cope with presence of Smrnmi extension
Enable RNMIs if the extension is present, as the feature affects trap
behavior when RNMIs are masked.
Diffstat (limited to 'v')
-rw-r--r-- | v/entry.S | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -60,6 +60,8 @@ handle_reset: li x30, 0 li x31, 0 + INIT_RNMI + la t0, trap_vector csrw mtvec, t0 la sp, STACK_TOP - SIZEOF_TRAPFRAME_T |