diff options
Diffstat (limited to 'arch/openrisc/include/asm/page.h')
-rw-r--r-- | arch/openrisc/include/asm/page.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/openrisc/include/asm/page.h b/arch/openrisc/include/asm/page.h index b041b344b229..108906f991d6 100644 --- a/arch/openrisc/include/asm/page.h +++ b/arch/openrisc/include/asm/page.h | |||
@@ -71,9 +71,6 @@ typedef struct page *pgtable_t; | |||
71 | #define __pgd(x) ((pgd_t) { (x) }) | 71 | #define __pgd(x) ((pgd_t) { (x) }) |
72 | #define __pgprot(x) ((pgprot_t) { (x) }) | 72 | #define __pgprot(x) ((pgprot_t) { (x) }) |
73 | 73 | ||
74 | extern unsigned long memory_start; | ||
75 | extern unsigned long memory_end; | ||
76 | |||
77 | #endif /* !__ASSEMBLY__ */ | 74 | #endif /* !__ASSEMBLY__ */ |
78 | 75 | ||
79 | 76 | ||
@@ -94,8 +91,7 @@ extern unsigned long memory_end; | |||
94 | 91 | ||
95 | #define pfn_valid(pfn) ((pfn) < max_mapnr) | 92 | #define pfn_valid(pfn) ((pfn) < max_mapnr) |
96 | 93 | ||
97 | #define virt_addr_valid(kaddr) (((void *)(kaddr) >= (void *)PAGE_OFFSET) && \ | 94 | #define virt_addr_valid(kaddr) (pfn_valid(virt_to_pfn(kaddr))) |
98 | ((void *)(kaddr) < (void *)memory_end)) | ||
99 | 95 | ||
100 | #endif /* __ASSEMBLY__ */ | 96 | #endif /* __ASSEMBLY__ */ |
101 | 97 | ||