From 4491c31cc9d5031d755f5d897ff3bd4ea5f137b5 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Thu, 22 Jul 1999 01:58:28 +0000 Subject: Burn memory corruption bug on the main branch as well. --- include/asm-mips/pgtable.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/asm-mips/pgtable.h b/include/asm-mips/pgtable.h index 521778afb..2a85a1617 100644 --- a/include/asm-mips/pgtable.h +++ b/include/asm-mips/pgtable.h @@ -1,4 +1,4 @@ -/* $Id: pgtable.h,v 1.18 1999/02/15 02:22:11 ralf Exp $ +/* $Id: pgtable.h,v 1.19 1999/06/13 16:35:53 ralf Exp $ * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive @@ -580,9 +580,9 @@ extern void (*update_mmu_cache)(struct vm_area_struct *vma, /* * Kernel with 32 bit address space */ -#define SWP_TYPE(entry) (((entry) >> 1) & 0x3f) -#define SWP_OFFSET(entry) ((entry) >> 8) -#define SWP_ENTRY(type,offset) (((type) << 1) | ((offset) << 8)) +#define SWP_TYPE(entry) (((entry) >> 8) & 0x7f) +#define SWP_OFFSET(entry) ((entry) >> 15) +#define SWP_ENTRY(type,offset) (((type) << 8) | ((offset) << 15)) #define module_map vmalloc #define module_unmap vfree -- cgit v1.2.3