update_mmu_cache bug
Following small patch is needed to prevent kernel from going into infinite loop on page_fault. Probably similar patches are needed for other CPUs as well, but since I don;t have any, I'll let those who do take care of that :)
Ilya.
Index: arch/mips64/mm/tlb-r4k.c
===================================================================
RCS file: /home/cvs/linux/arch/mips64/mm/tlb-r4k.c,v retrieving revision 1.9
mips64/mm/tlb-r4k.c 10 Dec 2002 17:02:30 -0000 renamed from mips64/mm/tlb-r4k.c 2 Dec 2002 00:27:49 -0000 1.9 +2 -1
@@ -260,8 +260,9 @@ tlb_probe(); BARRIER; pmdp = pmd_offset(pgdp, address); + idx = read_c0_index(); - ptep = pte_offset(pmdp, address); + ptep = pte_offset_map(pmdp, address); BARRIER; write_c0_entrylo0(pte_val(*ptep++) >> 6); write_c0_entrylo1(pte_val(*ptep) >> 6);
Quoted 8 lines · [email protected] wrote:
Following small patch is needed to prevent kernel from going into infinite loop on
page_fault. Probably similar patches are needed for other CPUs as well, but since I don;t have any, I'll let those who do take care of that :)Ilya.
It also seems not to work for the 32 bit kernel. The macro for
pte_offset_map
is very different in pgtable.h in the 32 bit directory than the 64 bit.
(Is there a good reason for this Ralf?)
/Brian