diff options
author | Yoshinori Sato <ysato@users.sourceforge.jp> | 2005-04-16 18:25:21 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:25:21 -0400 |
commit | 74ad74c1581c9a27582945ca01ffdb88fc774171 (patch) | |
tree | 334c0356525f04d888f4aed5d1d139d65a55d70b /include/asm-h8300/page.h | |
parent | d31ddaa1722793228b364e87b6c589023b348798 (diff) |
[PATCH] h8300 header update
- page.h: fix build error
- unistd.h: _syscall macro cleanup.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
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)) |