diff options
author | Sergei Shtylyov <sshtylyov@ru.mvista.com> | 2006-05-27 18:43:04 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2006-06-06 01:15:16 +0200 |
commit | 6ebba0e2f56ee77270a9ef8e92c1b4ec38e5f419 (patch) | |
tree | a4b4808d0f55eddc41d96cec95a68054e4380b55 /arch/mips/au1000/common/prom.c | |
parent | [MIPS] Fix mprotect() syscall for MIPS32 w/36-bit physical address support (diff) | |
download | linux-6ebba0e2f56ee77270a9ef8e92c1b4ec38e5f419.tar.xz linux-6ebba0e2f56ee77270a9ef8e92c1b4ec38e5f419.zip |
[MIPS] Fix swap entry for MIPS32 36-bit physical address
With 64-bit physical address enabled, 'swapon' was causing kernel oops on
Alchemy CPUs (MIPS32) because of the swap entry type field corrupting the
_PAGE_FILE bit in 'pte_low' field. So, switch to storing the swap entry in
'pte_high' field using all its bits except _PAGE_GLOBAL and _PAGE_VALID which
gives 25 bits for the swap entry offset.
Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions