From 6bd6dbbd3ae53a268a510270bebaab24fff382ca Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Fri, 25 Aug 2000 06:33:44 +0000 Subject: Merge with Linux 2.4.0-test6-pre10. --- include/asm-sparc/page.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/asm-sparc/page.h') diff --git a/include/asm-sparc/page.h b/include/asm-sparc/page.h index c727c06d8..47022fbba 100644 --- a/include/asm-sparc/page.h +++ b/include/asm-sparc/page.h @@ -177,7 +177,8 @@ extern __inline__ int get_order(unsigned long size) #define PAGE_OFFSET 0xf0000000 #define __pa(x) ((unsigned long)(x) - PAGE_OFFSET) #define __va(x) ((void *)((unsigned long) (x) + PAGE_OFFSET)) -#define MAP_NR(addr) (__pa(addr) >> PAGE_SHIFT) +#define virt_to_page(kaddr) (mem_map + (__pa(kaddr) >> PAGE_SHIFT)) +#define VALID_PAGE(page) ((page - mem_map) < max_mapnr) #endif /* __KERNEL__ */ -- cgit v1.2.3