On Mon, 16 Jul 2018, Julien Grall wrote: > At the moment, HSR_CPREG is expected to receive only the co-processor > register name in parameter. Because the name is actually a define, this > may have been expanded by a previous macro. > > Rather than imposing the use of _HSR_CPREG* in such cases, allow > HSR_CPREG to receive more than 1 parameter. > > Signed-off-by: Julien Grall <julien.gr...@linaro.org>
Reviewed-by: Stefano Stabellini <sstabell...@kernel.org> > --- > xen/include/asm-arm/cpregs.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/xen/include/asm-arm/cpregs.h b/xen/include/asm-arm/cpregs.h > index 8db65d5e2a..4c74e8161b 100644 > --- a/xen/include/asm-arm/cpregs.h > +++ b/xen/include/asm-arm/cpregs.h > @@ -47,8 +47,8 @@ > ((__HSR_CPREG_##op1) << HSR_CP64_OP1_SHIFT) > > /* Encode a register as per HSR ISS pattern */ > -#define HSR_CPREG32(X) _HSR_CPREG32(X) > -#define HSR_CPREG64(X) _HSR_CPREG64(X) > +#define HSR_CPREG32(X...) _HSR_CPREG32(X) > +#define HSR_CPREG64(X...) _HSR_CPREG64(X) > > /* > * Order registers by Coprocessor-> CRn-> Opcode 1-> CRm-> Opcode 2 > -- > 2.11.0 > _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel