diff options
author | Yinghai Lu <yinghai@kernel.org> | 2010-02-10 01:20:28 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2010-02-12 09:42:39 -0800 |
commit | 59be5a8e8ce765cf739ec7f07176219972de7481 (patch) | |
tree | 0dead91be8e1ccbbb0514877d4d1c1047cf401f0 /arch/x86/kernel/early_res.c | |
parent | 53db62a2529280ff216c941d8a2650204547e44a (diff) | |
download | lwn-59be5a8e8ce765cf739ec7f07176219972de7481.tar.gz lwn-59be5a8e8ce765cf739ec7f07176219972de7481.zip |
x86: Make 32bit support NO_BOOTMEM
Let's make 32bit consistent with 64bit.
-v2: Andrew pointed out for 32bit that we should use -1ULL
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
LKML-Reference: <1265793639-15071-25-git-send-email-yinghai@kernel.org>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86/kernel/early_res.c')
-rw-r--r-- | arch/x86/kernel/early_res.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/kernel/early_res.c b/arch/x86/kernel/early_res.c index dbf08bd01252..656cdf86a2fa 100644 --- a/arch/x86/kernel/early_res.c +++ b/arch/x86/kernel/early_res.c @@ -354,6 +354,9 @@ int __init get_free_all_memory_range(struct range **rangep, int nodeid) /* need to go over early_node_map to find out good range for node */ nr_range = add_from_early_node_map(range, count, nr_range, nodeid); +#ifdef CONFIG_X86_32 + subtract_range(range, count, max_low_pfn, -1ULL); +#endif subtract_early_res(range, count); nr_range = clean_sort_range(range, count); |