diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1997-06-07 10:42:39 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 1997-06-07 10:42:39 +0000 |
commit | 4f07d0ccc25dd2ca4147fee046efffe9f7416a0e (patch) | |
tree | 3cc239202aa7070e7e1ef5d2a0a35142ace12d42 | |
parent | fb3779cdd2c4b8132378d5b0640fdd3b35cd77b0 (diff) |
Add comment about handling of c0_pagemask in Linux and a R4600 1.7 bug.
-rw-r--r-- | arch/mips/mm/r4xx0.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/mips/mm/r4xx0.c b/arch/mips/mm/r4xx0.c index f83f41df8..974343069 100644 --- a/arch/mips/mm/r4xx0.c +++ b/arch/mips/mm/r4xx0.c @@ -2432,6 +2432,14 @@ try_again: flush_cache_all(); write_32bit_cp0_register(CP0_WIRED, 0); + + /* + * You should never change this register: + * - On R4600 1.7 the tlbp never hits for pages smaller than + * the value in the c0_pagemask register. + * - The entire mm handling assumes the c0_pagemask register to + * be set for 4kb pages. + */ write_32bit_cp0_register(CP0_PAGEMASK, PM_4K); flush_tlb_all(); } |