summaryrefslogtreecommitdiff
path: root/arch/x86_64/kernel
diff options
context:
space:
mode:
authorAndi Kleen <ak@suse.de>2006-03-25 16:29:58 +0100
committerLinus Torvalds <torvalds@g5.osdl.org>2006-03-25 09:10:54 -0800
commit1f50249e940baa7133e0bdb32cd564bb3ba28456 (patch)
tree8c268c7a73a713b2d4423cbbd293d46eb488320e /arch/x86_64/kernel
parent2b692a872c21849edb0a398937e31991526a9216 (diff)
downloadlwn-1f50249e940baa7133e0bdb32cd564bb3ba28456.tar.gz
lwn-1f50249e940baa7133e0bdb32cd564bb3ba28456.zip
[PATCH] x86_64: Make pfn_valid work early in boot
It needs num_physpages, so initialize it early. It's later overwritten again. Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/x86_64/kernel')
-rw-r--r--arch/x86_64/kernel/setup.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86_64/kernel/setup.c b/arch/x86_64/kernel/setup.c
index 01e2de4d2540..ad3b7fc24a05 100644
--- a/arch/x86_64/kernel/setup.c
+++ b/arch/x86_64/kernel/setup.c
@@ -614,6 +614,7 @@ void __init setup_arch(char **cmdline_p)
* we are rounding upwards:
*/
end_pfn = e820_end_of_ram();
+ num_physpages = end_pfn; /* for pfn_valid */
check_efer();