summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorDamien Le Moal <damien.lemoal@wdc.com>2018-12-21 08:48:42 +0300
committerDamien Le Moal <damien.lemoal@wdc.com>2018-12-21 09:09:13 +0300
commit8f91d1142e241d3319cdafd9810928870bc71970 (patch)
tree0ff2266eed81d10ae2d371c567840f2fc4d0cdfe /firmware
parent513474cd1b6f3481ee72ec71df916880d7bc0232 (diff)
downloadopensbi-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>
Diffstat (limited to 'firmware')
-rw-r--r--firmware/fw_common.S2
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