Skip to content

Commit

Permalink
MIPS: Ensure Config5.UFE is clear on boot
Browse files Browse the repository at this point in the history
As is done for UFR, ensure that userland cannot directly manipulate the
mode by clearing the UFE bit during boot.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: linux-fsdevel@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/7677/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Paul Burton authored and Ralf Baechle committed Nov 24, 2014
1 parent adac5d5 commit d175ed2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/kernel/cpu-probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ static inline unsigned int decode_config5(struct cpuinfo_mips *c)
unsigned int config5;

config5 = read_c0_config5();
config5 &= ~MIPS_CONF5_UFR;
config5 &= ~(MIPS_CONF5_UFR | MIPS_CONF5_UFE);
write_c0_config5(config5);

if (config5 & MIPS_CONF5_EVA)
Expand Down

0 comments on commit d175ed2

Please sign in to comment.