projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2d5b5e
)
MIPS: Don't probe reserved EntryHi bits.
author
David Daney
<
[email protected]
>
Mon, 8 Feb 2010 20:27:00 +0000
(12:27 -0800)
committer
Ralf Baechle
<
[email protected]
>
Wed, 10 Feb 2010 21:15:46 +0000
(22:15 +0100)
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]
>
arch/mips/kernel/cpu-probe.c
patch
|
blob
|
history
diff --git
a/arch/mips/kernel/cpu-probe.c
b/arch/mips/kernel/cpu-probe.c
index 9c187a64649ba7d6f1b4aabc75cecc471c434ecf..758ad426c57fedb3f71c8f6ae24544323817670e 100644
(file)
--- a/
arch/mips/kernel/cpu-probe.c
+++ b/
arch/mips/kernel/cpu-probe.c
@@
-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(0x3fffffffffff
f
000ULL);
+ write_c0_entryhi(0x3fffffffffff
e
000ULL);
back_to_back_c0_hazard();
- c->vmbits = fls64(read_c0_entryhi() & 0x3fffffffffff
f
000ULL);
+ c->vmbits = fls64(read_c0_entryhi() & 0x3fffffffffff
e
000ULL);
#endif
}