patch-2.4.20 linux-2.4.20/include/asm-ia64/page.h
Next file: linux-2.4.20/include/asm-ia64/pci.h
Previous file: linux-2.4.20/include/asm-ia64/offsets.h
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
Thu Nov 28 15:53:15 2002
- Orig file:
linux-2.4.19/include/asm-ia64/page.h
- Orig date:
Fri Aug 2 17:39:45 2002
diff -urN linux-2.4.19/include/asm-ia64/page.h linux-2.4.20/include/asm-ia64/page.h
@@ -55,7 +55,7 @@
#ifdef CONFIG_IA64_GENERIC
# include <asm/machvec.h>
# define virt_to_page(kaddr) (mem_map + platform_map_nr(kaddr))
-# define page_to_phys(page) XXX fix me
+# define page_to_phys(page) ((page - mem_map) << PAGE_SHIFT)
#elif defined (CONFIG_IA64_SGI_SN1)
# ifndef CONFIG_DISCONTIGMEM
# define virt_to_page(kaddr) (mem_map + MAP_NR_DENSE(kaddr))
@@ -65,7 +65,13 @@
# define virt_to_page(kaddr) (mem_map + MAP_NR_DENSE(kaddr))
# define page_to_phys(page) ((page - mem_map) << PAGE_SHIFT)
#endif
-#define VALID_PAGE(page) ((page - mem_map) < max_mapnr)
+#ifdef CONFIG_VIRTUAL_MEM_MAP
+ struct page;
+ extern int ia64_page_valid (struct page *);
+# define VALID_PAGE(page) (((page - mem_map) < max_mapnr) && ia64_page_valid(page))
+#else
+# define VALID_PAGE(page) ((page - mem_map) < max_mapnr)
+#endif
typedef union ia64_va {
struct {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)