All of lore.kernel.org
 help / color / mirror / Atom feed
* update_mmu_cache bug
@ 2002-12-10 19:18 ilya
  2002-12-10 21:00 ` Brian Murphy
  0 siblings, 1 reply; 2+ messages in thread
From: ilya @ 2002-12-10 19:18 UTC (permalink / raw)
  To: linux-mips; +Cc: ralf

[-- Attachment #1: Type: text/plain, Size: 900 bytes --]

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
diff -u -r1.9 tlb-r4k.c
--- arch/mips64/mm/tlb-r4k.c    2 Dec 2002 00:27:49 -0000       1.9
+++ arch/mips64/mm/tlb-r4k.c    10 Dec 2002 17:02:30 -0000
@@ -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);


[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: update_mmu_cache bug
  2002-12-10 19:18 update_mmu_cache bug ilya
@ 2002-12-10 21:00 ` Brian Murphy
  0 siblings, 0 replies; 2+ messages in thread
From: Brian Murphy @ 2002-12-10 21:00 UTC (permalink / raw)
  To: linux-mips; +Cc: Ralf Baechle

ilya@theIlya.com 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-12-10 21:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-10 19:18 update_mmu_cache bug ilya
2002-12-10 21:00 ` Brian Murphy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.