From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: [PATCH 5/9] tools: libxc: arm64 support Date: Fri, 15 Mar 2013 13:15:46 +0000 Message-ID: <1363353350-32251-5-git-send-email-ian.campbell@citrix.com> References: <1363353334.520.7.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1363353334.520.7.camel@zakaz.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: stefano.stabellini@citrix.com, tim@xen.org, Ian Campbell , ian.jackson@citrix.com List-Id: xen-devel@lists.xenproject.org Signed-off-by: Ian Campbell --- tools/libxc/xc_core.h | 2 +- tools/libxc/xenctrl.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletions(-) diff --git a/tools/libxc/xc_core.h b/tools/libxc/xc_core.h index 67b56a4..10cbfca 100644 --- a/tools/libxc/xc_core.h +++ b/tools/libxc/xc_core.h @@ -151,7 +151,7 @@ int xc_core_arch_map_p2m_writable(xc_interface *xch, unsigned int guest_width, #if defined (__i386__) || defined (__x86_64__) # include "xc_core_x86.h" -#elif defined (__arm__) +#elif defined (__arm__) || defined(__aarch64__) # include "xc_core_arm.h" #else # error "unsupported architecture" diff --git a/tools/libxc/xenctrl.h b/tools/libxc/xenctrl.h index 32122fd..50853af 100644 --- a/tools/libxc/xenctrl.h +++ b/tools/libxc/xenctrl.h @@ -79,6 +79,10 @@ #define xen_mb() asm volatile ("dmb" : : : "memory") #define xen_rmb() asm volatile ("dmb" : : : "memory") #define xen_wmb() asm volatile ("dmb" : : : "memory") +#elif defined(__aarch64__) +#define xen_mb() asm volatile ("dmb sy" : : : "memory") +#define xen_rmb() asm volatile ("dmb sy" : : : "memory") +#define xen_wmb() asm volatile ("dmb sy" : : : "memory") #else #error "Define barriers" #endif -- 1.7.2.5