From 522dcd1249d577c1828cb49f6cd300bc11c6f914 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20Neusch=C3=A4fer?= Date: Thu, 24 Nov 2016 08:10:13 +0100 Subject: [PATCH] riscv: Stub out sbi_(un)mask_interrupt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Linux needs these SBI calls, but so far it seems to work when they don't do anything. Change-Id: I2cd0bb3ab91e89805fed84ec87e4a48ce70c3a46 Signed-off-by: Jonathan Neuschäfer Reviewed-on: https://review.coreboot.org/17593 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich --- src/arch/riscv/sbi.S | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/arch/riscv/sbi.S b/src/arch/riscv/sbi.S index f4d5411879..528e4ca048 100644 --- a/src/arch/riscv/sbi.S +++ b/src/arch/riscv/sbi.S @@ -92,11 +92,13 @@ sbi_page: .align 4 /* -1872: int sbi_mask_interrupt(int which); */ - ebreak + li a0, 0 # dummy + jr ra .align 4 /* -1856: int sbi_unmask_interrupt(int which); */ - ebreak + li a0, 0 # dummy + jr ra .align 4 /* -1840: void sbi_remote_sfence_vm(const uintptr_t* harts,