diff options
Diffstat (limited to 'include/asm-x86/pgtable_32.h')
-rw-r--r-- | include/asm-x86/pgtable_32.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/asm-x86/pgtable_32.h b/include/asm-x86/pgtable_32.h index 5c3b26567a95..9bb5269475cc 100644 --- a/include/asm-x86/pgtable_32.h +++ b/include/asm-x86/pgtable_32.h | |||
@@ -56,8 +56,7 @@ void paging_init(void); | |||
56 | * area for the same reason. ;) | 56 | * area for the same reason. ;) |
57 | */ | 57 | */ |
58 | #define VMALLOC_OFFSET (8 * 1024 * 1024) | 58 | #define VMALLOC_OFFSET (8 * 1024 * 1024) |
59 | #define VMALLOC_START (((unsigned long)high_memory + 2 * VMALLOC_OFFSET - 1) \ | 59 | #define VMALLOC_START ((unsigned long)high_memory + VMALLOC_OFFSET) |
60 | & ~(VMALLOC_OFFSET - 1)) | ||
61 | #ifdef CONFIG_X86_PAE | 60 | #ifdef CONFIG_X86_PAE |
62 | #define LAST_PKMAP 512 | 61 | #define LAST_PKMAP 512 |
63 | #else | 62 | #else |
@@ -73,6 +72,8 @@ void paging_init(void); | |||
73 | # define VMALLOC_END (FIXADDR_START - 2 * PAGE_SIZE) | 72 | # define VMALLOC_END (FIXADDR_START - 2 * PAGE_SIZE) |
74 | #endif | 73 | #endif |
75 | 74 | ||
75 | #define MAXMEM (VMALLOC_END - PAGE_OFFSET - __VMALLOC_RESERVE) | ||
76 | |||
76 | /* | 77 | /* |
77 | * Define this if things work differently on an i386 and an i486: | 78 | * Define this if things work differently on an i386 and an i486: |
78 | * it will (on an i486) warn about kernel memory accesses that are | 79 | * it will (on an i486) warn about kernel memory accesses that are |