summaryrefslogtreecommitdiffstats
path: root/kernel/arch/x86/mm
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/arch/x86/mm')
-rw-r--r--kernel/arch/x86/mm/init_32.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/arch/x86/mm/init_32.c b/kernel/arch/x86/mm/init_32.c
index c8140e128..c23ab1ee3 100644
--- a/kernel/arch/x86/mm/init_32.c
+++ b/kernel/arch/x86/mm/init_32.c
@@ -137,6 +137,7 @@ page_table_range_init_count(unsigned long start, unsigned long end)
vaddr = start;
pgd_idx = pgd_index(vaddr);
+ pmd_idx = pmd_index(vaddr);
for ( ; (pgd_idx < PTRS_PER_PGD) && (vaddr != end); pgd_idx++) {
for (; (pmd_idx < PTRS_PER_PMD) && (vaddr != end);