projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61f9c58
)
MIPS: Only write c0_framemask on CPUs which have this register.
author
Ralf Baechle
<ralf@linux-mips.org>
Tue, 6 Jan 2009 23:07:20 +0000
(23:07 +0000)
committer
Ralf Baechle
<ralf@linux-mips.org>
Sun, 11 Jan 2009 09:57:28 +0000
(09:57 +0000)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/mm/tlb-r4k.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/mips/mm/tlb-r4k.c
b/arch/mips/mm/tlb-r4k.c
index 5ce2fa74562644d49adccb673d0d9dd950b96d96..9619f66e531e28747978cce5c7371adc0e3cd92a 100644
(file)
--- a/
arch/mips/mm/tlb-r4k.c
+++ b/
arch/mips/mm/tlb-r4k.c
@@
-478,7
+478,10
@@
void __cpuinit tlb_init(void)
probe_tlb(config);
write_c0_pagemask(PM_DEFAULT_MASK);
write_c0_wired(0);
- write_c0_framemask(0);
+ if (current_cpu_type() == CPU_R10000 ||
+ current_cpu_type() == CPU_R12000 ||
+ current_cpu_type() == CPU_R14000)
+ write_c0_framemask(0);
temp_tlb_entry = current_cpu_data.tlbsize - 1;
/* From this point on the ARC firmware is dead. */