|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] xen: Add macros MB and GB
commit 983843e7907ce75bdf97efa0b9f67db7b64e5765
Author: Julien Grall <julien.grall@xxxxxxxxxx>
AuthorDate: Fri Sep 27 17:56:33 2013 +0100
Commit: Ian Campbell <ian.campbell@xxxxxxxxxx>
CommitDate: Tue Oct 8 15:45:45 2013 +0100
xen: Add macros MB and GB
Signed-off-by: Julien Grall <julien.grall@xxxxxxxxxx>
Acked-by: Keir Fraser <keir@xxxxxxx>
CC: Jan Beulich <jbeulich@xxxxxxxx>
Reviewed-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
---
xen/include/asm-arm/config.h | 1 -
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 9e395c2..5b7b1a8 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 a52298e..657c6e5 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);
--
generated by git-patchbot for /home/xen/git/xen.git#master
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |