aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/config.h
diff options
context:
space:
mode:
authorJulien Grall <julien.grall@linaro.org>2013-09-27 17:56:33 +0100
committerIan Campbell <ian.campbell@citrix.com>2013-10-08 15:45:45 +0100
commit983843e7907ce75bdf97efa0b9f67db7b64e5765 (patch)
tree1985feb64f616e7e7670a638219021cad3447ee1 /xen/include/xen/config.h
parent081c4d400db24790b43ce344e6b5449b0800c253 (diff)
downloadxen-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>
Diffstat (limited to 'xen/include/xen/config.h')
-rw-r--r--xen/include/xen/config.h3
1 files changed, 3 insertions, 0 deletions
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);