Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e22146e6 authored by Jack Steiner's avatar Jack Steiner Committed by Ingo Molnar
Browse files

x86: fix kernel_physical_mapping_init() for large x86 systems



Fix bug in kernel_physical_mapping_init() that causes kernel
page table to be built incorrectly for systems with greater
than 512GB of memory.

Signed-off-by: default avatarJack Steiner <steiner@sgi.com>
Cc: linux-mm@kvack.org
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 45158894
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -644,7 +644,7 @@ static unsigned long __init kernel_physical_mapping_init(unsigned long start,
		unsigned long pud_phys;
		pud_t *pud;

		next = start + PGDIR_SIZE;
		next = (start + PGDIR_SIZE) & PGDIR_MASK;
		if (next > end)
			next = end;