From: Sergei Shtylyov Date: Sat, 27 May 2006 16:43:04 +0000 (+0400) Subject: [MIPS] Fix swap entry for MIPS32 36-bit physical address X-Git-Tag: v2.6.17-rc6~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ebba0e2f56ee77270a9ef8e92c1b4ec38e5f419;p=pandora-kernel.git [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 Signed-off-by: Ralf Baechle --- Reading git-diff-tree failed