From 8f91d1142e241d3319cdafd9810928870bc71970 Mon Sep 17 00:00:00 2001 From: Damien Le Moal Date: Fri, 21 Dec 2018 14:48:42 +0900 Subject: [PATCH] fw: Disable delegation Also disable interrupts and exceptions delegation when clearing mie and mip. Signed-off-by: Damien Le Moal --- firmware/fw_common.S | 2 ++ 1 file changed, 2 insertions(+) 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