aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/public
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2013-04-26 11:58:46 +0100
committerIan Campbell <ian.campbell@citrix.com>2013-04-30 11:44:02 +0100
commit6aaee4960d8a56aeab9d962ce554dff7f987e1fd (patch)
tree16865ea42c66387815801aaa5d8648562eeedc9b /xen/include/public
parentdea0a7c81ea948567308d2a9f1f9ef51a94cefa9 (diff)
downloadxen-6aaee4960d8a56aeab9d962ce554dff7f987e1fd.tar.gz
xen-6aaee4960d8a56aeab9d962ce554dff7f987e1fd.tar.bz2
xen-6aaee4960d8a56aeab9d962ce554dff7f987e1fd.zip
xen: arm: correct platform detection in public header.
These headers cannot use the CONFIG_FOO defines provided when building Xen (since they aren't provided when building tools or by external components) and need to use the compiler provided architecture defines. This manifested itself as a failure to build xenctx.c on ARM64 due to the missing symbols contains . Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Diffstat (limited to 'xen/include/public')
-rw-r--r--xen/include/public/arch-arm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/include/public/arch-arm.h b/xen/include/public/arch-arm.h
index 746df8e69f..2f5ce1826b 100644
--- a/xen/include/public/arch-arm.h
+++ b/xen/include/public/arch-arm.h
@@ -218,7 +218,7 @@ typedef uint64_t xen_callback_t;
#define PSR_MODE_SYS 0x1f
/* 64 bit modes */
-#ifdef CONFIG_ARM_64
+#ifdef __aarch64__
#define PSR_MODE_BIT 0x10 /* Set iff AArch32 */
#define PSR_MODE_EL3h 0x0d
#define PSR_MODE_EL3t 0x0c