|
@@ -62,7 +62,8 @@ static void __init find_early_table_space(struct map_range *mr, unsigned long en
|
|
extra += PMD_SIZE;
|
|
extra += PMD_SIZE;
|
|
#endif
|
|
#endif
|
|
/* The first 2/4M doesn't use large pages. */
|
|
/* The first 2/4M doesn't use large pages. */
|
|
- extra += mr->end - mr->start;
|
|
|
|
|
|
+ if (mr->start < PMD_SIZE)
|
|
|
|
+ extra += mr->end - mr->start;
|
|
|
|
|
|
ptes = (extra + PAGE_SIZE - 1) >> PAGE_SHIFT;
|
|
ptes = (extra + PAGE_SIZE - 1) >> PAGE_SHIFT;
|
|
} else
|
|
} else
|