]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MIPS: mm: c-r4k: Panic if IL or DL fields have a reserved value
authorMarkos Chandras <markos.chandras@imgtec.com>
Thu, 19 Sep 2013 17:18:41 +0000 (18:18 +0100)
committerJohn Crispin <blogic@openwrt.org>
Tue, 14 Jan 2014 11:48:26 +0000 (12:48 +0100)
commit035c3502f26231f93323b5c7f326955b888d591a
treeece9f8726d70b935f0b4fe361e5f7d99e6d375ae
parente1a161599220923b293c5652fc8fb186496474a7
MIPS: mm: c-r4k: Panic if IL or DL fields have a reserved value

According to MIPS32 and MIPS64 PRA documents,
a value of 7 in IL and DL fields is marked as "Reserved"
so panic if the core uses this value in the config1 register.
Also simplify the code a little bit.

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Acked-by: John Crispin <blogic@openwrt.org>
Patchwork: http://patchwork.linux-mips.org/patch/5861/
arch/mips/mm/c-r4k.c