]> xenbits.xensource.com Git - people/iwj/xen.git/commitdiff
xen: arm: correct platform detection in public header.
authorIan Campbell <ian.campbell@citrix.com>
Fri, 26 Apr 2013 10:58:46 +0000 (11:58 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 30 Apr 2013 10:44:02 +0000 (11:44 +0100)
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>
xen/include/public/arch-arm.h

index 746df8e69f062120a6bca969692635dc8975ae73..2f5ce1826b2767a265ada6072772b4096bb219c0 100644 (file)
@@ -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