summaryrefslogtreecommitdiffstats
path: root/include/asm-i386/pgtable.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-i386/pgtable.h')
-rw-r--r--include/asm-i386/pgtable.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-i386/pgtable.h b/include/asm-i386/pgtable.h
index abd454b40..fdc7b0107 100644
--- a/include/asm-i386/pgtable.h
+++ b/include/asm-i386/pgtable.h
@@ -225,12 +225,12 @@ extern unsigned long pg0[1024];
* for zero-mapped memory areas etc..
*/
extern unsigned long empty_zero_page[1024];
-#define ZERO_PAGE(vaddr) ((unsigned long) empty_zero_page)
+#define ZERO_PAGE(vaddr) (mem_map + MAP_NR(empty_zero_page))
/*
* Handling allocation failures during page table setup.
*/
-extern void __handle_bad_pmd (pmd_t * pmd);
+extern void __handle_bad_pmd(pmd_t * pmd);
extern void __handle_bad_pmd_kernel(pmd_t * pmd);
#define pte_none(x) (!pte_val(x))