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>
This commit is contained in:
Julien Grall authored and Ian Campbell committed 2013-10-08 15:45:45 +01:00
1 parent 081c4d400d
commit 983843e790
2 files changed
+3 -1

No files matched your search

-1
View File
@@ -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)
+3
View File
@@ -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);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.