mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
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:
1 parent
081c4d400d
commit
983843e790
2 files changed
+3
-1
No files matched your search
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
|
||||