diff options
author | Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> | 2009-03-16 15:10:07 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2009-03-17 14:46:01 -0400 |
commit | b8a22a6273d5aed248db2695ce9bf65eb3e9fbe6 (patch) | |
tree | 6e979aff3b13797221dabed6f02a351c8cb5261b /arch/x86/kernel/head_32.S | |
parent | c090f532db3ab5b7be503f8ac84b0d33a18646c6 (diff) |
x86-32: remove ALLOCATOR_SLOP from head_32.S
Impact: cleanup
ALLOCATOR_SLOP is a vestigial remain from when we used the
bootmem allocator to allocate the kernel's linear memory mapping.
Now we directly reserve pages from the e820 mapping, and no
longer require secondary structures to keep track of allocated
pages.
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'arch/x86/kernel/head_32.S')
-rw-r--r-- | arch/x86/kernel/head_32.S | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/kernel/head_32.S b/arch/x86/kernel/head_32.S index d383a7c0e49f..fc884b90b6d2 100644 --- a/arch/x86/kernel/head_32.S +++ b/arch/x86/kernel/head_32.S | |||
@@ -58,7 +58,6 @@ | |||
58 | #else | 58 | #else |
59 | #define PAGE_TABLE_SIZE(pages) ((pages) / PTRS_PER_PGD) | 59 | #define PAGE_TABLE_SIZE(pages) ((pages) / PTRS_PER_PGD) |
60 | #endif | 60 | #endif |
61 | ALLOCATOR_SLOP = 4 | ||
62 | 61 | ||
63 | /* Enough space to fit pagetables for the low memory linear map */ | 62 | /* Enough space to fit pagetables for the low memory linear map */ |
64 | MAPPING_BEYOND_END = (PAGE_TABLE_SIZE(1 << (32 - PAGE_SHIFT)) * PAGE_SIZE) | 63 | MAPPING_BEYOND_END = (PAGE_TABLE_SIZE(1 << (32 - PAGE_SHIFT)) * PAGE_SIZE) |
@@ -70,7 +69,7 @@ MAPPING_BEYOND_END = (PAGE_TABLE_SIZE(1 << (32 - PAGE_SHIFT)) * PAGE_SIZE) | |||
70 | */ | 69 | */ |
71 | KERNEL_PAGES = (KERNEL_IMAGE_SIZE + MAPPING_BEYOND_END)>>PAGE_SHIFT | 70 | KERNEL_PAGES = (KERNEL_IMAGE_SIZE + MAPPING_BEYOND_END)>>PAGE_SHIFT |
72 | 71 | ||
73 | INIT_MAP_SIZE = (PAGE_TABLE_SIZE(KERNEL_PAGES) + ALLOCATOR_SLOP) * PAGE_SIZE_asm | 72 | INIT_MAP_SIZE = PAGE_TABLE_SIZE(KERNEL_PAGES) * PAGE_SIZE_asm |
74 | RESERVE_BRK(pagetables, INIT_MAP_SIZE) | 73 | RESERVE_BRK(pagetables, INIT_MAP_SIZE) |
75 | 74 | ||
76 | /* | 75 | /* |