patch-2.1.129 linux/include/asm-sparc64/pgtable.h
Next file: linux/include/asm-sparc64/spinlock.h
Previous file: linux/include/asm-sparc64/namei.h
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Mon Nov 16 10:37:28 1998
- Orig file:
v2.1.128/linux/include/asm-sparc64/pgtable.h
- Orig date:
Sun Nov 8 14:03:10 1998
diff -u --recursive --new-file v2.1.128/linux/include/asm-sparc64/pgtable.h linux/include/asm-sparc64/pgtable.h
@@ -1,4 +1,4 @@
-/* $Id: pgtable.h,v 1.95 1998/10/22 03:05:57 davem Exp $
+/* $Id: pgtable.h,v 1.96 1998/10/27 23:28:42 davem Exp $
* pgtable.h: SpitFire page table operations.
*
* Copyright 1996,1997 David S. Miller (davem@caip.rutgers.edu)
@@ -602,7 +602,12 @@
{ pte_t pte; pte_val(pte) = (type<<PAGE_SHIFT)|(offset<<(PAGE_SHIFT+8)); return pte; }
extern inline pte_t mk_pte_io(unsigned long page, pgprot_t prot, int space)
-{ pte_t pte; pte_val(pte) = ((page) | pgprot_val(prot) | _PAGE_E) & ~(unsigned long)_PAGE_CACHE; return pte; }
+{
+ pte_t pte;
+ pte_val(pte) = ((page) | pgprot_val(prot) | _PAGE_E) & ~(unsigned long)_PAGE_CACHE;
+ pte_val(pte) |= (((unsigned long)space) << 32);
+ return pte;
+}
#define SWP_TYPE(entry) (((entry>>PAGE_SHIFT) & 0xff))
#define SWP_OFFSET(entry) ((entry) >> (PAGE_SHIFT+8))
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov