]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1ec128ec895ee0fe5023142faf7e87e820ea3b02
treec29258bf0e09194fe983e03278fa106f22fb87a0
parent1b6379dc626c5106a1762534c8e0b55e1eea8f6d
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