[kvm-unit-tests PATCH v2 1/3] sysregs: add __ACCESS_CP14 macro

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux