Skip to content

Commit

Permalink
MIPS: Don't probe reserved EntryHi bits.
Browse files Browse the repository at this point in the history
The patch that adds cpu_probe_vmbits is erroneously writing to reserved
bit 12.  Since we are really only probing high bits, don't write this bit
with a one.

Signed-off-by: David Daney <[email protected]>
To: [email protected]
Cc: Guenter Roeck <[email protected]>
Patchwork: http://patchwork.linux-mips.org/patch/949/
Acked-by: Guenter Roeck <[email protected]>
Signed-off-by: Ralf Baechle <[email protected]>
  • Loading branch information
David Daney authored and ralfbaechle committed Feb 10, 2010
1 parent c2d5b5e commit 5b7efa8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/mips/kernel/cpu-probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,9 @@ static inline int __cpu_has_fpu(void)
static inline void cpu_probe_vmbits(struct cpuinfo_mips *c)
{
#ifdef __NEED_VMBITS_PROBE
write_c0_entryhi(0x3ffffffffffff000ULL);
write_c0_entryhi(0x3fffffffffffe000ULL);
back_to_back_c0_hazard();
c->vmbits = fls64(read_c0_entryhi() & 0x3ffffffffffff000ULL);
c->vmbits = fls64(read_c0_entryhi() & 0x3fffffffffffe000ULL);
#endif
}

Expand Down

0 comments on commit 5b7efa8

Please sign in to comment.