diff options
author | Yinghai Lu <yinghai@kernel.org> | 2009-03-13 00:04:42 +0100 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-03-15 01:23:47 +0100 |
commit | 7543c1de84ed93c6769c9f20dced08a522af8912 (patch) | |
tree | dbeab0ab071b86c80b4d7c2701c7b767616772a6 /arch/x86/kernel/head_32.S | |
parent | x86: use brk allocation for DMI (diff) | |
download | linux-7543c1de84ed93c6769c9f20dced08a522af8912.tar.xz linux-7543c1de84ed93c6769c9f20dced08a522af8912.zip |
x86-32: compute initial mapping size more accurately
Impact: simplification
We only need to map the kernel in head_32.S, not the whole of
lowmem. We use 512MB as a reasonable (but arbitrary) limit on
the maximum size of the kernel image.
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86/kernel/head_32.S')
-rw-r--r-- | arch/x86/kernel/head_32.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/head_32.S b/arch/x86/kernel/head_32.S index db6652710e98..3ce5456dfbe6 100644 --- a/arch/x86/kernel/head_32.S +++ b/arch/x86/kernel/head_32.S @@ -54,7 +54,7 @@ * * This should be a multiple of a page. */ -LOW_PAGES = 1<<(32-PAGE_SHIFT_asm) +LOW_PAGES = (KERNEL_IMAGE_SIZE + PAGE_SIZE_asm - 1)>>PAGE_SHIFT /* * To preserve the DMA pool in PAGEALLOC kernels, we'll allocate |