linux-mips
[Top] [All Lists]

Re: mips64 LOAD_KPTE2 fix

To: Atsushi Nemoto <anemo@mba.ocn.ne.jp>, Ralf Baechle <ralf@linux-mips.org>
Subject: Re: mips64 LOAD_KPTE2 fix
From: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
Date: Thu, 5 Jun 2003 14:15:52 +0200 (MET DST)
Cc: linux-mips@linux-mips.org
In-reply-to: <20030605.095802.59461340.nemoto@toshiba-tops.co.jp>
Organization: Technical University of Gdansk
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
On Thu, 5 Jun 2003, Atsushi Nemoto wrote:

> >>>>> On Wed, 4 Jun 2003 16:09:10 +0200 (MET DST), "Maciej W. Rozycki" 
> >>>>> <macro@ds2.pg.gda.pl> said:
> >> Thank you for pointing out this.  I did not think very much.  But
> >> you mean "slt \tmp, \tmp, \ptr", don't you?
> 
> macro>  Not at all.  Why would I want to reverse the comparison?
> 
> Sorry, I garbled.  Please ignore my last patch.  Your patch works
> fine.  Thank you again.

 Ralf, OK to apply then?

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: macro@ds2.pg.gda.pl, PGP key available        +

patch-mips-2.4.21-pre4-20030505-load_kpte2-0
diff -up --recursive --new-file 
linux-mips-2.4.21-pre4-20030505.macro/arch/mips64/mm/tlbex-r4k.S 
linux-mips-2.4.21-pre4-20030505/arch/mips64/mm/tlbex-r4k.S
--- linux-mips-2.4.21-pre4-20030505.macro/arch/mips64/mm/tlbex-r4k.S    
2003-04-27 02:56:39.000000000 +0000
+++ linux-mips-2.4.21-pre4-20030505/arch/mips64/mm/tlbex-r4k.S  2003-06-03 
12:54:41.000000000 +0000
@@ -73,8 +73,9 @@
         * Determine that fault address is within vmalloc range.
         */
        dla     \tmp, ekptbl
-       sltu    \tmp, \ptr, \tmp
+       slt     \tmp, \ptr, \tmp
        beqz    \tmp, \not_vmalloc              # not vmalloc
+        nop
        .endm
 
 


<Prev in Thread] Current Thread [Next in Thread>