OSDN Git Service

riscv: poison SBI calls for M-mode
authorChristoph Hellwig <hch@lst.de>
Mon, 28 Oct 2019 12:10:34 +0000 (13:10 +0100)
committerPaul Walmsley <paul.walmsley@sifive.com>
Wed, 13 Nov 2019 21:20:41 +0000 (13:20 -0800)
commit3b03ac6bbd6ef6264d533791ac448e20bfb1858d
tree9c93e31caf8da08e6d9a0f0b04c75e8f78d4ba75
parenteded8bc66a0c2c43a1789ac6c973e2c5d47eac12
riscv: poison SBI calls for M-mode

There is no SBI when we run in M-mode, so fail the compile for any code
trying to use SBI calls.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Paul Walmsley <paul.walmsley@sifive.com>
arch/riscv/include/asm/sbi.h