summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/page_32_types.h
diff options
context:
space:
mode:
authorYinghai Lu2009-03-13 00:04:42 +0100
committerH. Peter Anvin2009-03-15 01:23:47 +0100
commit7543c1de84ed93c6769c9f20dced08a522af8912 (patch)
treedbeab0ab071b86c80b4d7c2701c7b767616772a6 /arch/x86/include/asm/page_32_types.h
parentx86: use brk allocation for DMI (diff)
downloadkernel-qcow2-linux-7543c1de84ed93c6769c9f20dced08a522af8912.tar.gz
kernel-qcow2-linux-7543c1de84ed93c6769c9f20dced08a522af8912.tar.xz
kernel-qcow2-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/include/asm/page_32_types.h')
-rw-r--r--arch/x86/include/asm/page_32_types.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/include/asm/page_32_types.h b/arch/x86/include/asm/page_32_types.h
index f1e4a79a6e41..0f915ae649a7 100644
--- a/arch/x86/include/asm/page_32_types.h
+++ b/arch/x86/include/asm/page_32_types.h
@@ -39,6 +39,11 @@
#define __VIRTUAL_MASK_SHIFT 32
#endif /* CONFIG_X86_PAE */
+/*
+ * Kernel image size is limited to 512 MB (see in arch/x86/kernel/head_32.S)
+ */
+#define KERNEL_IMAGE_SIZE (512 * 1024 * 1024)
+
#ifndef __ASSEMBLY__
/*