On Thu, May 18, 2017 at 05:02:06PM +0100, Alex Bennée wrote: > Signed-off-by: Alex Bennée <alex.bennee@xxxxxxxxxx> > --- > lib/arm/asm/sysreg.h | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/lib/arm/asm/sysreg.h b/lib/arm/asm/sysreg.h > index 02dbe3d..9344968 100644 > --- a/lib/arm/asm/sysreg.h > +++ b/lib/arm/asm/sysreg.h > @@ -42,6 +42,11 @@ > #define __ACCESS_CP15_64(Op1, CRm) \ > "mrrc", "mcrr", xstr(p15, Op1, %Q0, %R0, CRm), u64 > > +#define __ACCESS_CP14(CRn, Op1, CRm, Op2) \ > + "mrc", "mcr", xstr(p14, Op1, %0, CRn, CRm, Op2), u32 > +#define __ACCESS_CP14_64(Op1, CRm) \ > + "mrrc", "mcrr", xstr(p14, Op1, %Q0, %R0, CRm), u64 > + > #define __read_sysreg(r, w, c, t) ({ \ > t __val; \ > asm volatile(r " " c : "=r" (__val)); \ > -- > 2.13.0 > Reviewed-by: Andrew Jones <drjones@xxxxxxxxxx>