[PATCH] lib: sbi: check A2 register in ecall_dbcn_handler.

Gianluca Guida gianluca at rivosinc.com
Thu Jun 29 07:18:45 PDT 2023


On Sat, Jun 24, 2023 at 12:08 PM Andrew Jones <ajones at ventanamicro.com> wrote:
[...]
> >  lib/sbi/sbi_ecall_dbcn.c | 7 +++++--
> >  1 file changed, 5 insertions(+), 2 deletions(-)
> >
> > diff --git a/lib/sbi/sbi_ecall_dbcn.c b/lib/sbi/sbi_ecall_dbcn.c
> > index e0b892c..ecec027 100644
> > --- a/lib/sbi/sbi_ecall_dbcn.c
> > +++ b/lib/sbi/sbi_ecall_dbcn.c
> > @@ -34,11 +34,14 @@ static int sbi_ecall_dbcn_handler(unsigned long extid, unsigned long funcid,
> >                * Based on above, we simply fail if the upper 32bits of
> >                * the physical address (i.e. a2 register) is non-zero on
> >                * RV32.
> > +                 *
> > +                 * Analogously, we fail if the upper 64bit of the
> > +                 * physical address (i.e. a2 register) is non-zero on
> > +                 * RV64.
>
> I see I'm too late, since Anup already applied, but the above lines have
> leading spaces instead of tabs.
>

I'll send a follow-up patch.

Thank you,
G.



More information about the opensbi mailing list