]> xenbits.xensource.com Git - xen.git/commitdiff
xen/riscv: mask all interrupts
authorOleksii Kurochko <oleksii.kurochko@gmail.com>
Mon, 13 Feb 2023 09:05:39 +0000 (10:05 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 13 Feb 2023 09:05:39 +0000 (10:05 +0100)
Signed-off-by: Oleksii Kurochko <oleksii.kurochko@gmail.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
xen/arch/riscv/riscv64/head.S

index d444dd8aad7aaf338f72eb81453a4a7198a29715..ffd95f9f89224ea29616beb691949eeaf56528f9 100644 (file)
@@ -1,6 +1,11 @@
+#include <asm/riscv_encoding.h>
+
         .section .text.header, "ax", %progbits
 
 ENTRY(start)
+        /* Mask all interrupts */
+        csrw    CSR_SIE, zero
+
         la      sp, cpu0_boot_stack
         li      t0, STACK_SIZE
         add     sp, sp, t0