summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/early_res.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/early_res.c')
-rw-r--r--arch/x86/kernel/early_res.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/kernel/early_res.c b/arch/x86/kernel/early_res.c
index dbf08bd..656cdf8 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);
OpenPOWER on IntegriCloud