[ARM] pgtable: rearrange file PTE bit allocation
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Sat, 11 Jul 2009 15:57:20 +0000 (16:57 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 11 Jul 2009 15:59:39 +0000 (16:59 +0100)
commit6a00cded91532f3d58e07729ba56269339281d8e
tree511becb90348f84b23c7669ba820e2fe852bb572
parentf7a55fa6ecef8be6d15bd79a803e44a3187ce9d6
[ARM] pgtable: rearrange file PTE bit allocation

For future compatibility, we need to ensure that swap and file Linux
PTEs conform with the hardware PTEs "fault" encoding.  Swap PTEs
already fit in with this, but file PTEs do not.  Shift them by one
bit to ensure that they conform, using bit 2 to distinguish between
swap and file PTEs.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/pgtable.h