]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MIPS: tlb-r4k: panic if the MMU doesn't support PAGE_SIZE
authorPaul Burton <paul.burton@imgtec.com>
Mon, 13 Jul 2015 16:12:44 +0000 (17:12 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 7 Mar 2016 10:49:57 +0000 (11:49 +0100)
commit2d78f93ce9e8e061218d984dd56ece55042dfd4f
treed20b8778ec4bf73d3ef7ad0c3ba6777b5fe5c2e4
parent84b537359a8539b481de2450d1c855c64418f12e
MIPS: tlb-r4k: panic if the MMU doesn't support PAGE_SIZE

After writing the appropriate mask to the cop0 PageMask register, read
the register back & check it matches what we want. If it doesn't then
the MMU does not support the page size the kernel is configured for and
we're better off bailing than continuing to do odd things with TLB
exceptions.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: Steven J. Hill <Steven.Hill@imgtec.com>
Cc: Joshua Kinard <kumba@gentoo.org>
Cc: Rafał Miłecki <zajec5@gmail.com>
Cc: James Hogan <james.hogan@imgtec.com>
Cc: Markos Chandras <markos.chandras@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/10691/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/mm/tlb-r4k.c