]> git.baikalelectronics.ru Git - kernel.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)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 22 Jan 2014 19:18:56 +0000 (20:18 +0100)
commit1e978e08a9840e06ecb59fc38dce01986fe5cbd9
treeb38fcbe0290b5f68f8dd168ed7b563d9d51a5877
parent9461bbccb9305fe3e8228bc5b0941e652d443a5c
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>
Signed-off-by: John Crispin <blogic@openwrt.org>
Patchwork: http://patchwork.linux-mips.org/patch/5861/
arch/mips/mm/c-r4k.c