diff options
author | Julien Grall <julien.grall@linaro.org> | 2013-09-27 17:56:33 +0100 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2013-10-08 15:45:45 +0100 |
commit | 983843e7907ce75bdf97efa0b9f67db7b64e5765 (patch) | |
tree | 1985feb64f616e7e7670a638219021cad3447ee1 | |
parent | 081c4d400db24790b43ce344e6b5449b0800c253 (diff) | |
download | xen-983843e7907ce75bdf97efa0b9f67db7b64e5765.tar.gz xen-983843e7907ce75bdf97efa0b9f67db7b64e5765.tar.bz2 xen-983843e7907ce75bdf97efa0b9f67db7b64e5765.zip |
xen: Add macros MB and GB
Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Keir Fraser <keir@xen.org>
CC: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
-rw-r--r-- | xen/include/asm-arm/config.h | 1 | ||||
-rw-r--r-- | xen/include/xen/config.h | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/xen/include/asm-arm/config.h b/xen/include/asm-arm/config.h index 9e395c2e65..5b7b1a862f 100644 --- a/xen/include/asm-arm/config.h +++ b/xen/include/asm-arm/config.h @@ -142,7 +142,6 @@ #define SLOT0_ENTRY_BITS 39 #define SLOT0(slot) (_AT(vaddr_t,slot) << SLOT0_ENTRY_BITS) #define SLOT0_ENTRY_SIZE SLOT0(1) -#define GB(_gb) (_AC(_gb, UL) << 30) #define VMAP_VIRT_START GB(1) #define VMAP_VIRT_END (VMAP_VIRT_START + GB(1) - 1) diff --git a/xen/include/xen/config.h b/xen/include/xen/config.h index a52298ea3b..657c6e5b8c 100644 --- a/xen/include/xen/config.h +++ b/xen/include/xen/config.h @@ -69,6 +69,9 @@ #define __force #define __bitwise +#define MB(_mb) (_AC(_mb, UL) << 20) +#define GB(_gb) (_AC(_gb, UL) << 30) + #ifndef __ASSEMBLY__ int current_domain_id(void); |