linux-mips
[Top] [All Lists]

Re: PATCH

To: Pete Popov <ppopov@mvista.com>
Subject: Re: PATCH
From: Ralf Baechle <ralf@oss.sgi.com>
Date: Tue, 16 Jul 2002 17:07:41 +0200
Cc: linux-mips <linux-mips@oss.sgi.com>
In-reply-to: <1026772150.15665.145.camel@zeus.mvista.com>; from ppopov@mvista.com on Mon, Jul 15, 2002 at 03:29:10PM -0700
References: <1026772150.15665.145.camel@zeus.mvista.com>
Sender: owner-linux-mips@oss.sgi.com
User-agent: Mutt/1.2.5.1i
On Mon, Jul 15, 2002 at 03:29:10PM -0700, Pete Popov wrote:

> --- include/asm-mips/pgtable.h.old    Fri Jul 12 17:25:19 2002
> +++ include/asm-mips/pgtable.h        Fri Jul 12 17:25:36 2002
> @@ -332,7 +332,9 @@
>  
>  static inline pte_t pte_modify(pte_t pte, pgprot_t newprot)
>  {
> -     return __pte(((pte).pte_low & _PAGE_CHG_MASK) | pgprot_val(newprot));
> +     pte.pte_low &= _PAGE_CHG_MASK;
> +     pte.pte_low |= pgprot_val(newprot);
> +     return pte;
>  }

This patch certainly doesn't apply to oss.  Seems somebody did copy all
the x86 pte_t and stuff into your tree without too much thinking ...

  Ralf


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