All pastes #121378 Raw Edit

Miscellany

public text v1 · immutable
·published 2006-08-07 23:19 UTC
rendered paste body
commit 71aabb42541ead6fd910485408e96bdc547de1b4
Author: Chris Wedgwood <cwedgwood@xxx>
Date:   Mon Aug 7 16:15:50 2006 -0700

    This is a work around (actually, it's probably the right permanent
    fix) for a TLB problem that will cause kernel crashes with certain TLB
    update patterns (it's basically a kernel bug where we generate
    tlb-write patterns without giving time for a load on CP0 to take place
    as far as I can tell).

diff --git a/arch/mips/mm/tlbex.c b/arch/mips/mm/tlbex.c
index 79efd19..7880b11 100644
--- a/arch/mips/mm/tlbex.c
+++ b/arch/mips/mm/tlbex.c
@@ -839,6 +839,7 @@ static __init void build_tlb_write_entry
                break;

        case CPU_R4300:
+       case CPU_4KC:
        case CPU_5KC:
        case CPU_TX49XX:
        case CPU_AU1000:
@@ -853,7 +854,6 @@ static __init void build_tlb_write_entry

        case CPU_R10000:
        case CPU_R12000:
-       case CPU_4KC:
        case CPU_SB1:
        case CPU_SB1A:
        case CPU_4KSC: