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:
0097761
)
MIPS: R3000: Fix debug output for Virtual page number
author
Isamu Mogi
<
[email protected]
>
Thu, 30 Oct 2014 13:07:36 +0000
(22:07 +0900)
committer
Ralf Baechle
<
[email protected]
>
Thu, 6 Nov 2014 14:49:36 +0000
(15:49 +0100)
Virtual page number of R3000 in entryhi is 20 bit from MSB. But in
dump_tlb(), the bit mask to read it from entryhi is 19 bit (0xffffe000).
The patch fixes that to 0xfffff000.
Signed-off-by: Isamu Mogi <
[email protected]
>
Cc:
[email protected]
Cc:
[email protected]
Patchwork: https://patchwork.linux-mips.org/patch/8290/
Signed-off-by: Ralf Baechle <
[email protected]
>
arch/mips/lib/r3k_dump_tlb.c
patch
|
blob
|
history
diff --git
a/arch/mips/lib/r3k_dump_tlb.c
b/arch/mips/lib/r3k_dump_tlb.c
index 91615c2ef0cf969baeff215ca3d8a627e3851d2f..1ef365ab3cd3bfd93cafe61d6cef6fa919644d22 100644
(file)
--- a/
arch/mips/lib/r3k_dump_tlb.c
+++ b/
arch/mips/lib/r3k_dump_tlb.c
@@
-34,7
+34,7
@@
static void dump_tlb(int first, int last)
entrylo0 = read_c0_entrylo0();
/* Unused entries have a virtual address of KSEG0. */
- if ((entryhi & 0xffff
e
000) != 0x80000000
+ if ((entryhi & 0xffff
f
000) != 0x80000000
&& (entryhi & 0xfc0) == asid) {
/*
* Only print entries in use
@@
-43,7
+43,7
@@
static void dump_tlb(int first, int last)
printk("va=%08lx asid=%08lx"
" [pa=%06lx n=%d d=%d v=%d g=%d]",
- (entryhi & 0xffff
e
000),
+ (entryhi & 0xffff
f
000),
entryhi & 0xfc0,
entrylo0 & PAGE_MASK,
(entrylo0 & (1 << 11)) ? 1 : 0,