tile: handle super huge pages in virt_to_pte
authorChris Metcalf <cmetcalf@tilera.com>
Sat, 10 Aug 2013 17:15:46 +0000 (13:15 -0400)
committerChris Metcalf <cmetcalf@tilera.com>
Fri, 30 Aug 2013 15:57:02 +0000 (11:57 -0400)
commita718e10cbaa28035b7ab510d68fef68524454e1a
tree64b9283a5d94e2aa78046cc52f47757a8224d8ed
parent35f059761c5ac313d13372fe3cdaa41bce3d0dbf
tile: handle super huge pages in virt_to_pte

This tile-specific API had a minor bug, in that if a super huge (>4GB)
page mapped a particular address range, we wouldn't handle it correctly.
As part of fixing that bug, I also cleaned up some of the pud and pmd
accessors to make them more consistent.

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
arch/tile/include/asm/pgtable_32.h
arch/tile/include/asm/pgtable_64.h
arch/tile/mm/pgtable.c