diff options
author | Yinghai Lu <yinghai@kernel.org> | 2010-02-10 04:20:28 -0500 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2010-02-12 12:42:39 -0500 |
commit | 59be5a8e8ce765cf739ec7f07176219972de7481 (patch) | |
tree | 0dead91be8e1ccbbb0514877d4d1c1047cf401f0 /arch/x86/kernel/early_res.c | |
parent | 53db62a2529280ff216c941d8a2650204547e44a (diff) |
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) | |||
354 | 354 | ||
355 | /* need to go over early_node_map to find out good range for node */ | 355 | /* need to go over early_node_map to find out good range for node */ |
356 | nr_range = add_from_early_node_map(range, count, nr_range, nodeid); | 356 | nr_range = add_from_early_node_map(range, count, nr_range, nodeid); |
357 | #ifdef CONFIG_X86_32 | ||
358 | subtract_range(range, count, max_low_pfn, -1ULL); | ||
359 | #endif | ||
357 | subtract_early_res(range, count); | 360 | subtract_early_res(range, count); |
358 | nr_range = clean_sort_range(range, count); | 361 | nr_range = clean_sort_range(range, count); |
359 | 362 | ||