diff options
| -rw-r--r-- | arch/x86/mm/init.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/mm/init.c b/arch/x86/mm/init.c index 97141c26a13a..bc4e9d84157f 100644 --- a/arch/x86/mm/init.c +++ b/arch/x86/mm/init.c | |||
| @@ -62,7 +62,8 @@ static void __init find_early_table_space(struct map_range *mr, unsigned long en | |||
| 62 | extra += PMD_SIZE; | 62 | extra += PMD_SIZE; |
| 63 | #endif | 63 | #endif |
| 64 | /* The first 2/4M doesn't use large pages. */ | 64 | /* The first 2/4M doesn't use large pages. */ |
| 65 | extra += mr->end - mr->start; | 65 | if (mr->start < PMD_SIZE) |
| 66 | extra += mr->end - mr->start; | ||
| 66 | 67 | ||
| 67 | ptes = (extra + PAGE_SIZE - 1) >> PAGE_SHIFT; | 68 | ptes = (extra + PAGE_SIZE - 1) >> PAGE_SHIFT; |
| 68 | } else | 69 | } else |
