RISC-V: Add interrupt related SCAUSE defines in asm/csr.h
authorAnup Patel <Anup.Patel@wdc.com>
Thu, 25 Apr 2019 08:38:37 +0000 (08:38 +0000)
committerPalmer Dabbelt <palmer@sifive.com>
Fri, 17 May 2019 03:42:11 +0000 (20:42 -0700)
commit6dcaf00487ca10d87e53fc8decb2e30f113c955d
treec29258bf0e09194fe983e03278fa106f22fb87a0
parent196a14d45161b320ec8bddf5321b1c5ed89f2d7f
RISC-V: Add interrupt related SCAUSE defines in asm/csr.h

This patch adds SCAUSE interrupt flag and SCAUSE interrupt related
defines to asm/csr.h. We also use these defines in kernel/irq.c and
express SIE/SIP flags in-terms of SCAUSE interrupt causes.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/include/asm/csr.h
arch/riscv/kernel/irq.c