Re: [PATCH 08/20] riscv: abstract out CSR names for supervisor vs machine mode

2019-10-17 Thread Christoph Hellwig
On Tue, Oct 15, 2019 at 07:07:17PM -0700, Paul Walmsley wrote: > > void start_thread(struct pt_regs *regs, unsigned long pc, > > unsigned long sp) > > { > > - regs->sstatus = SR_SPIE; > > + regs->xstatus = SR_SPIE; > > Looks like this should be "regs->xstatus = SR_PIE;" > > Will update

Re: [PATCH 08/20] riscv: abstract out CSR names for supervisor vs machine mode

2019-10-15 Thread Paul Walmsley
On Tue, 3 Sep 2019, Christoph Hellwig wrote: > Many of the privileged CSRs exist in a supervisor and machine version > that are used very similarly. Provide a new X-naming layer so that > we don't have to ifdef everywhere for M-mode Linux support. > > Contains contributions from Damien Le Moal .

[PATCH 08/20] riscv: abstract out CSR names for supervisor vs machine mode

2019-09-03 Thread Christoph Hellwig
Many of the privileged CSRs exist in a supervisor and machine version that are used very similarly. Provide a new X-naming layer so that we don't have to ifdef everywhere for M-mode Linux support. Contains contributions from Damien Le Moal . Signed-off-by: Christoph Hellwig Reviewed-by: Atish P