diff options
| author | Damien Le Moal <[email protected]> | 2018-12-21 14:48:42 +0900 |
|---|---|---|
| committer | Damien Le Moal <[email protected]> | 2018-12-21 15:09:13 +0900 |
| commit | 8f91d1142e241d3319cdafd9810928870bc71970 (patch) | |
| tree | 0ff2266eed81d10ae2d371c567840f2fc4d0cdfe | |
| parent | 513474cd1b6f3481ee72ec71df916880d7bc0232 (diff) | |
fw: Disable delegation
Also disable interrupts and exceptions delegation when clearing mie and
mip.
Signed-off-by: Damien Le Moal <[email protected]>
| -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 9963fdd9..afe14a1b 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 |
