projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
344afa6
)
MIPS: Restore pagemask after dumping the TLB.
author
Ralf Baechle
<ralf@linux-mips.org>
Tue, 16 Oct 2012 23:01:20 +0000
(
01:01
+0200)
committer
Ralf Baechle
<ralf@linux-mips.org>
Tue, 16 Oct 2012 23:01:20 +0000
(
01:01
+0200)
Or bad things might happen if the last TLB entry isn't a basic size page.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/lib/dump_tlb.c
patch
|
blob
|
history
diff --git
a/arch/mips/lib/dump_tlb.c
b/arch/mips/lib/dump_tlb.c
index 3f69725556afb3fc78d5ac3bab04be6176e28017..a99c1d3fc56769dc91f58ce64e117e0eb8533b44 100644
(file)
--- a/
arch/mips/lib/dump_tlb.c
+++ b/
arch/mips/lib/dump_tlb.c
@@
-50,8
+50,9
@@
static void dump_tlb(int first, int last)
{
unsigned long s_entryhi, entryhi, asid;
unsigned long long entrylo0, entrylo1;
- unsigned int s_index, pagemask, c0, c1, i;
+ unsigned int s_index,
s_pagemask,
pagemask, c0, c1, i;
+ s_pagemask = read_c0_pagemask();
s_entryhi = read_c0_entryhi();
s_index = read_c0_index();
asid = s_entryhi & 0xff;
@@
-103,6
+104,7
@@
static void dump_tlb(int first, int last)
write_c0_entryhi(s_entryhi);
write_c0_index(s_index);
+ write_c0_pagemask(s_pagemask);
}
void dump_tlb_all(void)