patch-2.4.21 linux-2.4.21/include/asm-ppc64/pgtable.h
Next file: linux-2.4.21/include/asm-ppc64/posix_types.h
Previous file: linux-2.4.21/include/asm-ppc64/perfmon.h
Back to the patch index
Back to the overall index
- Lines: 25
- Date:
2003-06-13 07:51:38.000000000 -0700
- Orig file:
linux-2.4.20/include/asm-ppc64/pgtable.h
- Orig date:
2002-11-28 15:53:15.000000000 -0800
diff -urN linux-2.4.20/include/asm-ppc64/pgtable.h linux-2.4.21/include/asm-ppc64/pgtable.h
@@ -100,9 +100,9 @@
/* preserving _PAGE_SECONDARY | _PAGE_GROUP_IX */
#define _PAGE_CHG_MASK (PAGE_MASK | _PAGE_ACCESSED | _PAGE_DIRTY | _PAGE_HPTEFLAGS)
-#define _PAGE_BASE _PAGE_PRESENT | _PAGE_ACCESSED | _PAGE_COHERENT
+#define _PAGE_BASE (_PAGE_PRESENT | _PAGE_ACCESSED | _PAGE_COHERENT)
-#define _PAGE_WRENABLE _PAGE_RW | _PAGE_DIRTY
+#define _PAGE_WRENABLE (_PAGE_RW | _PAGE_DIRTY)
/* __pgprot defined in asm-ppc64/page.h */
#define PAGE_NONE __pgprot(_PAGE_PRESENT | _PAGE_ACCESSED)
@@ -415,7 +415,11 @@
*/
#define kern_addr_valid(addr) (1)
-#define io_remap_page_range remap_page_range
+#ifdef CONFIG_PPC_ISERIES
+#define io_remap_page_range remap_page_range
+#else
+extern int io_remap_page_range(unsigned long from, unsigned long to, unsigned long size, pgprot_t prot);
+#endif
/*
* No page table caches to initialise
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)