fw: Disable delegation

Also disable interrupts and exceptions delegation when clearing mie and
mip.

Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
This commit is contained in:
Damien Le Moal 2018-12-21 14:48:42 +09:00
parent 513474cd1b
commit 8f91d1142e

View file

@ -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