Re: [PATCH v3 2/3] RISC-V: Add interrupt related SCAUSE defines in asm/csr.h

From: Christoph Hellwig
Date: Wed Apr 24 2019 - 11:01:40 EST


On Wed, Apr 24, 2019 at 12:15:45PM +0530, Anup Patel wrote:
> We need these defines for programming HIDELEG CSR in KVM kernel module
> so it will be used at multiple places.
>
> >
> > http://git.infradead.org/users/hch/misc.git/commitdiff/1221f5c32345ebe7ea2c1cd6e8a01ad4b422aaba
>
> You can certainly use these defines in your nommu commit by using
> "#ifdef CONFIG_M_MODE" in switch case of do_IRQ().

Or just keep them in the current format even when you move them, as
that allows everything to work with a single ifdef at their point
of declaration..