Message ID | 20210319221305.2138412-4-atish.patra@wdc.com |
---|---|
State | Superseded |
Headers | show |
Series | SBI PMU extension support | expand |
> -----Original Message----- > From: Atish Patra <atish.patra@wdc.com> > Sent: 20 March 2021 03:43 > To: opensbi@lists.infradead.org > Cc: Atish Patra <Atish.Patra@wdc.com>; Anup Patel <Anup.Patel@wdc.com> > Subject: [RFC 03/14] lib: sbi: Remove stray '\' character > > Signed-off-by: Atish Patra <atish.patra@wdc.com> Looks good to me. Reviewed-by: Anup Patel <anup.patel@wdc.com> Regards, Anup > --- > lib/sbi/sbi_hart.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/lib/sbi/sbi_hart.c b/lib/sbi/sbi_hart.c index > 0b3bb6237182..ee11b2133d05 100644 > --- a/lib/sbi/sbi_hart.c > +++ b/lib/sbi/sbi_hart.c > @@ -320,7 +320,7 @@ static unsigned long > hart_pmp_get_allowed_addr(void) > unsigned long val = 0; > struct sbi_trap_info trap = {0}; > > - csr_write_allowed(CSR_PMPADDR0, (ulong)&trap, > PMP_ADDR_MASK); \ > + csr_write_allowed(CSR_PMPADDR0, (ulong)&trap, > PMP_ADDR_MASK); > if (!trap.cause) { > val = csr_read_allowed(CSR_PMPADDR0, (ulong)&trap); > if (trap.cause) > -- > 2.25.1
在 2021-03-19五的 15:12 -0700,Atish Patra写道: > Signed-off-by: Atish Patra <atish.patra@wdc.com> Look good to me. Reviewed-by: Xiang W <wxjstz@126.com> Regards, Xiang W > --- > lib/sbi/sbi_hart.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/lib/sbi/sbi_hart.c b/lib/sbi/sbi_hart.c > index 0b3bb6237182..ee11b2133d05 100644 > --- a/lib/sbi/sbi_hart.c > +++ b/lib/sbi/sbi_hart.c > @@ -320,7 +320,7 @@ static unsigned long > hart_pmp_get_allowed_addr(void) > unsigned long val = 0; > struct sbi_trap_info trap = {0}; > > - csr_write_allowed(CSR_PMPADDR0, (ulong)&trap, PMP_ADDR_MASK); > \ > + csr_write_allowed(CSR_PMPADDR0, (ulong)&trap, PMP_ADDR_MASK); > if (!trap.cause) { > val = csr_read_allowed(CSR_PMPADDR0, (ulong)&trap); > if (trap.cause) > -- > 2.25.1 > >
diff --git a/lib/sbi/sbi_hart.c b/lib/sbi/sbi_hart.c index 0b3bb6237182..ee11b2133d05 100644 --- a/lib/sbi/sbi_hart.c +++ b/lib/sbi/sbi_hart.c @@ -320,7 +320,7 @@ static unsigned long hart_pmp_get_allowed_addr(void) unsigned long val = 0; struct sbi_trap_info trap = {0}; - csr_write_allowed(CSR_PMPADDR0, (ulong)&trap, PMP_ADDR_MASK); \ + csr_write_allowed(CSR_PMPADDR0, (ulong)&trap, PMP_ADDR_MASK); if (!trap.cause) { val = csr_read_allowed(CSR_PMPADDR0, (ulong)&trap); if (trap.cause)
Signed-off-by: Atish Patra <atish.patra@wdc.com> --- lib/sbi/sbi_hart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)