diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2013-02-22 08:57:45 +0000 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2013-02-22 12:14:51 +0000 |
commit | ae01113535e9c1f7220e72ebe602030dd82b4fb0 (patch) | |
tree | e5aadabac9675b1dccf879c500731fc0ae3a7cfc /xen/include/asm-arm/config.h | |
parent | dac84b66cc9adfdf7231f4c433553cc95db30930 (diff) | |
download | xen-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/config.h')
-rw-r--r-- | xen/include/asm-arm/config.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/xen/include/asm-arm/config.h b/xen/include/asm-arm/config.h index 5a1ea1d51c..3910dd27f3 100644 --- a/xen/include/asm-arm/config.h +++ b/xen/include/asm-arm/config.h @@ -7,6 +7,21 @@ #ifndef __ARM_CONFIG_H__ #define __ARM_CONFIG_H__ +#if defined(__aarch64__) +# define CONFIG_ARM_64 1 +#elif defined(__arm__) +# define CONFIG_ARM_32 1 +#endif + +#if defined(CONFIG_ARM_64) +# define LONG_BYTEORDER 3 +#else +# define LONG_BYTEORDER 2 +#endif + +#define BYTES_PER_LONG (1 << LONG_BYTEORDER) +#define BITS_PER_LONG (BYTES_PER_LONG << 3) + #define CONFIG_PAGING_ASSISTANCE 1 #define CONFIG_PAGING_LEVELS 3 |