diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:32:42 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:32:42 -0500 |
commit | 3da1bcc2659de27094592e5a037d0b1d59351e03 (patch) | |
tree | 8bda0ae7da52e30b11dc3d09ae596f269e216319 | |
parent | 74ef649fe847fdfbd3e1732d21b923f59ca04e8c (diff) |
x86: page.h: move and unify types for pagetable entry, #1
based on:
Subject: x86: page.h: move and unify types for pagetable entry
From: Jeremy Fitzhardinge <jeremy@goop.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r-- | include/asm-x86/page.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/asm-x86/page.h b/include/asm-x86/page.h index 2ebb6977e00c..911d7e0b3cd9 100644 --- a/include/asm-x86/page.h +++ b/include/asm-x86/page.h | |||
@@ -9,6 +9,7 @@ | |||
9 | #define PAGE_MASK (~(PAGE_SIZE-1)) | 9 | #define PAGE_MASK (~(PAGE_SIZE-1)) |
10 | 10 | ||
11 | #define PHYSICAL_PAGE_MASK (PAGE_MASK & __PHYSICAL_MASK) | 11 | #define PHYSICAL_PAGE_MASK (PAGE_MASK & __PHYSICAL_MASK) |
12 | #define PTE_MASK PHYSICAL_PAGE_MASK | ||
12 | 13 | ||
13 | #define LARGE_PAGE_SIZE (_AC(1,UL) << PMD_SHIFT) | 14 | #define LARGE_PAGE_SIZE (_AC(1,UL) << PMD_SHIFT) |
14 | #define LARGE_PAGE_MASK (~(LARGE_PAGE_SIZE-1)) | 15 | #define LARGE_PAGE_MASK (~(LARGE_PAGE_SIZE-1)) |
@@ -24,8 +25,13 @@ | |||
24 | #define __PHYSICAL_MASK ((_AC(1,UL) << __PHYSICAL_MASK_SHIFT) - 1) | 25 | #define __PHYSICAL_MASK ((_AC(1,UL) << __PHYSICAL_MASK_SHIFT) - 1) |
25 | #define __VIRTUAL_MASK ((_AC(1,UL) << __VIRTUAL_MASK_SHIFT) - 1) | 26 | #define __VIRTUAL_MASK ((_AC(1,UL) << __VIRTUAL_MASK_SHIFT) - 1) |
26 | 27 | ||
28 | #ifndef __ASSEMBLY__ | ||
29 | #include <linux/types.h> | ||
30 | #endif | ||
27 | 31 | ||
28 | #ifdef CONFIG_X86_64 | 32 | #ifdef CONFIG_X86_64 |
33 | #define PAGETABLE_LEVELS 4 | ||
34 | |||
29 | #define THREAD_ORDER 1 | 35 | #define THREAD_ORDER 1 |
30 | #define THREAD_SIZE (PAGE_SIZE << THREAD_ORDER) | 36 | #define THREAD_SIZE (PAGE_SIZE << THREAD_ORDER) |
31 | #define CURRENT_MASK (~(THREAD_SIZE-1)) | 37 | #define CURRENT_MASK (~(THREAD_SIZE-1)) |