diff options
author | Damien Le Moal <damien.lemoal@wdc.com> | 2018-12-21 08:48:42 +0300 |
---|---|---|
committer | Damien Le Moal <damien.lemoal@wdc.com> | 2018-12-21 09:09:13 +0300 |
commit | 8f91d1142e241d3319cdafd9810928870bc71970 (patch) | |
tree | 0ff2266eed81d10ae2d371c567840f2fc4d0cdfe | |
parent | 513474cd1b6f3481ee72ec71df916880d7bc0232 (diff) | |
download | opensbi-8f91d1142e241d3319cdafd9810928870bc71970.tar.xz |
fw: Disable delegation
Also disable interrupts and exceptions delegation when clearing mie and
mip.
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
-rw-r--r-- | firmware/fw_common.S | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/fw_common.S b/firmware/fw_common.S index 9963fdd..afe14a1 100644 --- a/firmware/fw_common.S +++ b/firmware/fw_common.S @@ -121,6 +121,8 @@ _wait_for_boot_hart: _start_warm: /* Disable and clear all interrupts */ + csrw mideleg, zero + csrw medeleg, zero csrw mie, zero csrw mip, zero |