[PATCH] kexec: reserve Bootmem fix for booting nondefault location kernel
commit8a9190853c34289d9181acd9c620c76143bf88ca
authorVivek Goyal <vgoyal@in.ibm.com>
Sat, 25 Jun 2005 21:57:51 +0000 (25 14:57 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 25 Jun 2005 23:24:48 +0000 (25 16:24 -0700)
tree449d3fcc0dea0f9eef321a9c373db342ecdbf387
parent3d345e3fc9e9177deb7c82e5c79e32d77eb63cce
[PATCH] kexec: reserve Bootmem fix for booting nondefault location kernel

This patch fixes a problem with reserving memory during boot up of a kernel
built for non-default location.  Currently boot memory allocator reserves
the memory required by kernel image, boot allocaotor bitmap etc.  It
assumes that kernel is loaded at 1MB (HIGH_MEMORY hard coded to 1024*1024).
 But kernel can be built for non-default locatoin, hence existing
hardcoding will lead to reserving unnecessary memory.  This patch fixes it.

Signed-off-by: Vivek Goyal <vgoyal@in.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/setup.c