linux-mips
[Top] [All Lists]

Re: Swap on DECStation

To: Harald Koerfgen <Harald.Koerfgen@home.ivm.de>
Subject: Re: Swap on DECStation
From: Ralf Baechle <ralf@oss.sgi.com>
Date: Thu, 19 Oct 2000 23:44:30 +0200
Cc: Jan-Benedict Glaw <jbglaw@lug-owl.de>, linux-mips@oss.sgi.com
In-reply-to: <XFMail.001019205554.Harald.Koerfgen@home.ivm.de>; from Harald.Koerfgen@home.ivm.de on Thu, Oct 19, 2000 at 08:55:54PM +0200
References: <20001019121432.E9832@lug-owl.de> <XFMail.001019205554.Harald.Koerfgen@home.ivm.de>
Sender: owner-linux-mips@oss.sgi.com
On Thu, Oct 19, 2000 at 08:55:54PM +0200, Harald Koerfgen wrote:

> --- snip ---
> --- pgtable.h.orig      Sat Jul  1 12:27:34 2000
> +++ pgtable.h   Sat Jul  1 17:25:21 2000
> @@ -443,9 +443,9 @@
>  extern void update_mmu_cache(struct vm_area_struct *vma,
>                                 unsigned long address, pte_t pte);
>  
> -#define SWP_TYPE(x)            (((x).val >> 1) & 0x3f)
> -#define SWP_OFFSET(x)          ((x).val >> 8)
> -#define SWP_ENTRY(type,offset) ((swp_entry_t) { ((type) << 1) | ((offset) << 
> 8) })
> +#define SWP_TYPE(x)            (((x).val >> 8) & 0x7f)
> +#define SWP_OFFSET(x)          ((x).val >> 15)
> +#define SWP_ENTRY(type,offset) ((swp_entry_t) { ((type) << 8) | ((offset) << 
> 15) })
>  #define pte_to_swp_entry(pte)  ((swp_entry_t) { pte_val(pte) })

Reverting this breaks R4000.  At least now I know how this did end up in
CVS ...

  Ralf

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