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
|