aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-arm/types.h
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2013-02-22 08:57:45 +0000
committerIan Campbell <ian.campbell@citrix.com>2013-02-22 12:14:51 +0000
commitae01113535e9c1f7220e72ebe602030dd82b4fb0 (patch)
treee5aadabac9675b1dccf879c500731fc0ae3a7cfc /xen/include/asm-arm/types.h
parentdac84b66cc9adfdf7231f4c433553cc95db30930 (diff)
downloadxen-ae01113535e9c1f7220e72ebe602030dd82b4fb0.tar.gz
xen-ae01113535e9c1f7220e72ebe602030dd82b4fb0.tar.bz2
xen-ae01113535e9c1f7220e72ebe602030dd82b4fb0.zip
xen: arm64: basic config and types headers
The 64-bit bitops are taken from the Linux asm-generic implementations. They should be replaced with optimised versions from the Linux arm64 port when they become available. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Tim Deegan <tim@xen.org>
Diffstat (limited to 'xen/include/asm-arm/types.h')
-rw-r--r--xen/include/asm-arm/types.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/xen/include/asm-arm/types.h b/xen/include/asm-arm/types.h
index 19231efcd2..3f6317b627 100644
--- a/xen/include/asm-arm/types.h
+++ b/xen/include/asm-arm/types.h
@@ -15,8 +15,13 @@ typedef __signed__ int __s32;
typedef unsigned int __u32;
#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
+#if defined(CONFIG_ARM_32)
typedef __signed__ long long __s64;
typedef unsigned long long __u64;
+#elif defined (CONFIG_ARM_64)
+typedef __signed__ long __s64;
+typedef unsigned long __u64;
+#endif
#endif
typedef signed char s8;
@@ -28,11 +33,19 @@ typedef unsigned short u16;
typedef signed int s32;
typedef unsigned int u32;
+#if defined(CONFIG_ARM_32)
typedef signed long long s64;
typedef unsigned long long u64;
typedef u64 paddr_t;
#define INVALID_PADDR (~0ULL)
#define PRIpaddr "016llx"
+#elif defined (CONFIG_ARM_64)
+typedef signed long s64;
+typedef unsigned long u64;
+typedef u64 paddr_t;
+#define INVALID_PADDR (~0UL)
+#define PRIpaddr "016lx"
+#endif
typedef unsigned long size_t;
@@ -42,10 +55,6 @@ typedef char bool_t;
#endif /* __ASSEMBLY__ */
-#define BITS_PER_LONG 32
-#define BYTES_PER_LONG 4
-#define LONG_BYTEORDER 2
-
#endif /* __ARM_TYPES_H__ */
/*
* Local variables: