diff options
Diffstat (limited to 'include/asm-h8300/page.h')
-rw-r--r-- | include/asm-h8300/page.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-h8300/page.h b/include/asm-h8300/page.h index 58b053f1ef3b..e3b7960d445b 100644 --- a/include/asm-h8300/page.h +++ b/include/asm-h8300/page.h | |||
@@ -79,7 +79,7 @@ extern unsigned long memory_end; | |||
79 | 79 | ||
80 | #ifndef __ASSEMBLY__ | 80 | #ifndef __ASSEMBLY__ |
81 | 81 | ||
82 | #define __pa(vaddr) virt_to_phys((void *)vaddr) | 82 | #define __pa(vaddr) virt_to_phys(vaddr) |
83 | #define __va(paddr) phys_to_virt((unsigned long)paddr) | 83 | #define __va(paddr) phys_to_virt((unsigned long)paddr) |
84 | 84 | ||
85 | #define virt_to_pfn(kaddr) (__pa(kaddr) >> PAGE_SHIFT) | 85 | #define virt_to_pfn(kaddr) (__pa(kaddr) >> PAGE_SHIFT) |
@@ -89,7 +89,7 @@ extern unsigned long memory_end; | |||
89 | #define virt_to_page(addr) (mem_map + (((unsigned long)(addr)-PAGE_OFFSET) >> PAGE_SHIFT)) | 89 | #define virt_to_page(addr) (mem_map + (((unsigned long)(addr)-PAGE_OFFSET) >> PAGE_SHIFT)) |
90 | #define virt_to_page(addr) (mem_map + (((unsigned long)(addr)-PAGE_OFFSET) >> PAGE_SHIFT)) | 90 | #define virt_to_page(addr) (mem_map + (((unsigned long)(addr)-PAGE_OFFSET) >> PAGE_SHIFT)) |
91 | #define page_to_virt(page) ((((page) - mem_map) << PAGE_SHIFT) + PAGE_OFFSET) | 91 | #define page_to_virt(page) ((((page) - mem_map) << PAGE_SHIFT) + PAGE_OFFSET) |
92 | #define VALID_PAGE(page) ((page - mem_map) < max_mapnr) | 92 | #define pfn_valid(page) (page < max_mapnr) |
93 | 93 | ||
94 | #define pfn_to_page(pfn) virt_to_page(pfn_to_virt(pfn)) | 94 | #define pfn_to_page(pfn) virt_to_page(pfn_to_virt(pfn)) |
95 | #define page_to_pfn(page) virt_to_pfn(page_to_virt(page)) | 95 | #define page_to_pfn(page) virt_to_pfn(page_to_virt(page)) |