patch-2.4.20 linux-2.4.20/include/asm-sparc/io.h

Next file: linux-2.4.20/include/asm-sparc/kmap_types.h
Previous file: linux-2.4.20/include/asm-sparc/highmem.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.19/include/asm-sparc/io.h linux-2.4.20/include/asm-sparc/io.h
@@ -13,6 +13,7 @@
 
 #define virt_to_bus virt_to_phys
 #define bus_to_virt phys_to_virt
+#define page_to_phys(page)     ((((page) - mem_map) << PAGE_SHIFT)+phys_base)
 
 static __inline__ u32 flip_dword (u32 d)
 {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)