Commit 1f50249e authored by Andi Kleen's avatar Andi Kleen Committed by Linus Torvalds

[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: default avatarAndi Kleen <ak@suse.de>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 2b692a87
...@@ -614,6 +614,7 @@ void __init setup_arch(char **cmdline_p) ...@@ -614,6 +614,7 @@ void __init setup_arch(char **cmdline_p)
* we are rounding upwards: * we are rounding upwards:
*/ */
end_pfn = e820_end_of_ram(); end_pfn = e820_end_of_ram();
num_physpages = end_pfn; /* for pfn_valid */
check_efer(); check_efer();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment