瀏覽代碼

x86: add PUD_PAGE_SIZE

a PUD entry covers 1GB of virtual memory.

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Andi Kleen 17 年之前
父節點
當前提交
fbff3c21af
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      include/asm-x86/page_64.h

+ 3 - 0
include/asm-x86/page_64.h

@@ -23,6 +23,9 @@
 #define MCE_STACK 5
 #define MCE_STACK 5
 #define N_EXCEPTION_STACKS 5  /* hw limit: 7 */
 #define N_EXCEPTION_STACKS 5  /* hw limit: 7 */
 
 
+#define PUD_PAGE_SIZE		(_AC(1, UL) << PUD_SHIFT)
+#define PUD_PAGE_MASK		(~(PUD_PAGE_SIZE-1))
+
 #define __PAGE_OFFSET           _AC(0xffff810000000000, UL)
 #define __PAGE_OFFSET           _AC(0xffff810000000000, UL)
 
 
 #define __PHYSICAL_START	CONFIG_PHYSICAL_START
 #define __PHYSICAL_START	CONFIG_PHYSICAL_START