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

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)