Skip to content

Commit

Permalink
powerpc/mm: Fix typo in PTRS_PER_PUD
Browse files Browse the repository at this point in the history
PTRS_PER_PUD should be based on PUD_INDEX_SIZE, not PMD_INDEX_SIZE.  We
got away with it because PUD and PMD had the same index size, but this is
no longer true with Aneesh's patchset to support a 46-bit user effective
address space.

Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
Scott Wood authored and Benjamin Herrenschmidt committed Sep 17, 2012
1 parent b92a66a commit f3d3444
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/include/asm/pgtable-ppc64-4k.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#define PTRS_PER_PTE (1 << PTE_INDEX_SIZE)
#define PTRS_PER_PMD (1 << PMD_INDEX_SIZE)
#define PTRS_PER_PUD (1 << PMD_INDEX_SIZE)
#define PTRS_PER_PUD (1 << PUD_INDEX_SIZE)
#define PTRS_PER_PGD (1 << PGD_INDEX_SIZE)

/* PMD_SHIFT determines what a second-level page table entry can map */
Expand Down

0 comments on commit f3d3444

Please sign in to comment.