sh: Reworked swap cache entry encoding for SH-X2 MMU.
authorPaul Mundt <lethal@linux-sh.org>
Thu, 7 Dec 2006 03:43:06 +0000 (12:43 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 11 Dec 2006 23:42:06 +0000 (08:42 +0900)
commitb9b382dabba1e4a106093557933ec4411ebcbe0f
treed6d18f06d1f032d9b1230569dbacc22cc043a4ee
parente45116b8d71ece9dbe41b114368ff7aebe3ae41a
sh: Reworked swap cache entry encoding for SH-X2 MMU.

In the 64-bit PTE case there's no point in restricting the encoding
to the low bits of the PTE, we can instead bump all of this up to
the high 32 bits and extend PTE_FILE_MAX_BITS to 32, adopting the
same convention used by x86 PAE.

There's a minor discrepency between the number of bits used for the
swap type encoding between 32 and 64-bit PTEs, but this is unlikely
to cause any problem given the extended offset.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
include/asm-sh/pgtable.h