aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/mm/init_32.c4
-rw-r--r--arch/x86/mm/init_64.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/arch/x86/mm/init_32.c b/arch/x86/mm/init_32.c
index 34760e483972..f59e9b851637 100644
--- a/arch/x86/mm/init_32.c
+++ b/arch/x86/mm/init_32.c
@@ -900,7 +900,11 @@ struct map_range {
900 unsigned page_size_mask; 900 unsigned page_size_mask;
901}; 901};
902 902
903#ifdef CONFIG_X86_32
903#define NR_RANGE_MR 3 904#define NR_RANGE_MR 3
905#else /* CONFIG_X86_64 */
906#define NR_RANGE_MR 5
907#endif
904 908
905static int save_mr(struct map_range *mr, int nr_range, 909static int save_mr(struct map_range *mr, int nr_range,
906 unsigned long start_pfn, unsigned long end_pfn, 910 unsigned long start_pfn, unsigned long end_pfn,
diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c
index d99bc6ac4884..d101990e4635 100644
--- a/arch/x86/mm/init_64.c
+++ b/arch/x86/mm/init_64.c
@@ -660,7 +660,11 @@ struct map_range {
660 unsigned page_size_mask; 660 unsigned page_size_mask;
661}; 661};
662 662
663#ifdef CONFIG_X86_32
664#define NR_RANGE_MR 3
665#else /* CONFIG_X86_64 */
663#define NR_RANGE_MR 5 666#define NR_RANGE_MR 5
667#endif
664 668
665static int save_mr(struct map_range *mr, int nr_range, 669static int save_mr(struct map_range *mr, int nr_range,
666 unsigned long start_pfn, unsigned long end_pfn, 670 unsigned long start_pfn, unsigned long end_pfn,