aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xenctrl.h
diff options
context:
space:
mode:
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>2012-03-01 17:37:03 +0000
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>2012-03-01 17:37:03 +0000
commitdaa314fe19387f722561d4429715adac776e2142 (patch)
tree100ac7e6f3158452d9915da270b432721f06325a /tools/libxc/xenctrl.h
parent7246f7fe44e12308ac5d846c2685da3db7ae5963 (diff)
downloadxen-daa314fe19387f722561d4429715adac776e2142.tar.gz
xen-daa314fe19387f722561d4429715adac776e2142.tar.bz2
xen-daa314fe19387f722561d4429715adac776e2142.zip
arm: compile libxc
Introduce an empty implementation of the arch specific ARM functions in xc_core_arm.c and xc_core_arm.h; define barriers on ARM. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson.citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxc/xenctrl.h')
-rw-r--r--tools/libxc/xenctrl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/libxc/xenctrl.h b/tools/libxc/xenctrl.h
index 6dd500ae20..1b2659f063 100644
--- a/tools/libxc/xenctrl.h
+++ b/tools/libxc/xenctrl.h
@@ -83,6 +83,10 @@
#define xen_mb() asm volatile ("mf" ::: "memory")
#define xen_rmb() asm volatile ("mf" ::: "memory")
#define xen_wmb() asm volatile ("mf" ::: "memory")
+#elif defined(__arm__)
+#define xen_mb() asm volatile ("dmb" : : : "memory")
+#define xen_rmb() asm volatile ("dmb" : : : "memory")
+#define xen_wmb() asm volatile ("dmb" : : : "memory")
#else
#error "Define barriers"
#endif