diff options
Diffstat (limited to 'include/asm-x86/pgtable.h')
-rw-r--r-- | include/asm-x86/pgtable.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asm-x86/pgtable.h b/include/asm-x86/pgtable.h index 820db41dbe4c..eb14a70a4728 100644 --- a/include/asm-x86/pgtable.h +++ b/include/asm-x86/pgtable.h | |||
@@ -118,6 +118,14 @@ extern unsigned long long __PAGE_KERNEL, __PAGE_KERNEL_EXEC; | |||
118 | #ifndef __ASSEMBLY__ | 118 | #ifndef __ASSEMBLY__ |
119 | 119 | ||
120 | /* | 120 | /* |
121 | * ZERO_PAGE is a global shared page that is always zero: used | ||
122 | * for zero-mapped memory areas etc.. | ||
123 | */ | ||
124 | extern unsigned long empty_zero_page[PAGE_SIZE/sizeof(unsigned long)]; | ||
125 | #define ZERO_PAGE(vaddr) (virt_to_page(empty_zero_page)) | ||
126 | |||
127 | |||
128 | /* | ||
121 | * The following only work if pte_present() is true. | 129 | * The following only work if pte_present() is true. |
122 | * Undefined behaviour if not.. | 130 | * Undefined behaviour if not.. |
123 | */ | 131 | */ |