[lkml]   [2019]   [Apr]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v3 2/3] RISC-V: Add interrupt related SCAUSE defines in asm/csr.h
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.
> >
> >
> 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..

 \ /
  Last update: 2019-04-24 17:01    [W:0.062 / U:1.220 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site