patch-2.4.21 linux-2.4.21/include/asm-parisc/pgtable.h
Next file: linux-2.4.21/include/asm-parisc/processor.h
Previous file: linux-2.4.21/include/asm-parisc/pgalloc.h
Back to the patch index
Back to the overall index
-  Lines: 12
-  Date:
2003-06-13 07:51:38.000000000 -0700
-  Orig file: 
linux-2.4.20/include/asm-parisc/pgtable.h
-  Orig date: 
2002-11-28 15:53:15.000000000 -0800
diff -urN linux-2.4.20/include/asm-parisc/pgtable.h linux-2.4.21/include/asm-parisc/pgtable.h
@@ -281,6 +281,11 @@
 	__pte;								\
 })
 
+/* 
+ * Change "struct page" to physical address.
+ */
+#define page_to_phys(page)      PAGE_TO_PA(page)
+
 #ifdef CONFIG_DISCONTIGMEM
 #define PAGE_TO_PA(page) \
 		((((page)-(page)->zone->zone_mem_map) << PAGE_SHIFT) \
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)