Displaying 2 results from an estimated 2 matches for "pml4_entry_bits".
2013 Feb 14
1
[PATCH] x86: use single definitions for a few constants
...ther than having a C and an assembly one.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
--- a/xen/include/asm-x86/config.h
+++ b/xen/include/asm-x86/config.h
@@ -112,19 +112,14 @@ extern unsigned char boot_edid_info[128]
#define CONFIG_COMPAT 1
+#include <xen/const.h>
+
#define PML4_ENTRY_BITS 39
-#ifndef __ASSEMBLY__
-#define PML4_ENTRY_BYTES (1UL << PML4_ENTRY_BITS)
-#define PML4_ADDR(_slot) \
- ((((_slot ## UL) >> 8) * 0xffff000000000000UL) | \
- (_slot ## UL << PML4_ENTRY_BITS))
-#define GB(_gb) (_gb ## UL << 30)
-#else
-#de...
2009 Jul 13
0
[PATCH, v2] x86-64: reduce symbol table size
...0000 +0200
+++ 2009-07-10/xen/include/asm-x86/config.h 2009-07-13 14:01:35.000000000 +0200
@@ -122,10 +122,12 @@ extern unsigned int video_mode, video_fl
#define PML4_ADDR(_slot) \
((((_slot ## UL) >> 8) * 0xffff000000000000UL) | \
(_slot ## UL << PML4_ENTRY_BITS))
+#define GB(_gb) (_gb ## UL << 30)
#else
#define PML4_ENTRY_BYTES (1 << PML4_ENTRY_BITS)
#define PML4_ADDR(_slot) \
(((_slot >> 8) * 0xffff000000000000) | (_slot << PML4_ENTRY_BITS))
+#define GB(_gb) (_gb << 30)
#endif
/*
@@ -2...