]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] i386: Reserve kernel memory starting from _text
authorEric W. Biederman <ebiederm@xmission.com>
Thu, 7 Dec 2006 01:14:03 +0000 (02:14 +0100)
committerAndi Kleen <andi@basil.nowhere.org>
Thu, 7 Dec 2006 01:14:03 +0000 (02:14 +0100)
commitb53342bdb71d3b784c9a4e6e8ded36fc9865cf6c
tree46ed6f4b7c0e2391bcc956a7e0e0fc498e389f67
parent462c21078332b99de139c4a39a651b9c91d2f472
[PATCH] i386: Reserve kernel memory starting from _text

Currently when we are reserving the memory the kernel text
resides in we start at __PHYSICAL_START which happens to be
correct but not very obvious.  In addition when we start relocating
the kernel __PHYSICAL_START is the wrong value, as it is an
absolute symbol that does not get relocated.

By starting the reservation at __pa_symbol(_text)
the code is clearer and will be correct when relocated.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Vivek Goyal <vgoyal@in.ibm.com>
Signed-off-by: Andi Kleen <ak@suse.de>
arch/i386/kernel/setup.c