Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: ilya@theIlya.com
To: linux-mips@linux-mips.org
Cc: ralf@linux-mips.org
Subject: update_mmu_cache bug
Date: Tue, 10 Dec 2002 11:18:01 -0800	[thread overview]
Message-ID: <20021210191801.GF609@gateway.total-knowledge.com> (raw)

[-- 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 --]

             reply	other threads:[~2002-12-10 19:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-10 19:18 ilya [this message]
2002-12-10 21:00 ` update_mmu_cache bug Brian Murphy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021210191801.GF609@gateway.total-knowledge.com \
    --to=ilya@theilya.com \
    --cc=linux-mips@linux-mips.org \
    --cc=ralf@linux-mips.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox