aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-sparc64/page.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-sparc64/page.h')
-rw-r--r--include/asm-sparc64/page.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/include/asm-sparc64/page.h b/include/asm-sparc64/page.h
index c277ac56b9d7..f6b49256fe2b 100644
--- a/include/asm-sparc64/page.h
+++ b/include/asm-sparc64/page.h
@@ -125,17 +125,10 @@ typedef unsigned long pgprot_t;
125#define __pa(x) ((unsigned long)(x) - PAGE_OFFSET) 125#define __pa(x) ((unsigned long)(x) - PAGE_OFFSET)
126#define __va(x) ((void *)((unsigned long) (x) + PAGE_OFFSET)) 126#define __va(x) ((void *)((unsigned long) (x) + PAGE_OFFSET))
127 127
128/* PFNs are real physical page numbers. However, mem_map only begins to record 128#define pfn_to_kaddr(pfn) __va((pfn) << PAGE_SHIFT)
129 * per-page information starting at pfn_base. This is to handle systems where
130 * the first physical page in the machine is at some huge physical address,
131 * such as 4GB. This is common on a partitioned E10000, for example.
132 */
133extern struct page *pfn_to_page(unsigned long pfn);
134extern unsigned long page_to_pfn(struct page *);
135 129
136#define virt_to_page(kaddr) pfn_to_page(__pa(kaddr)>>PAGE_SHIFT) 130#define virt_to_page(kaddr) pfn_to_page(__pa(kaddr)>>PAGE_SHIFT)
137 131
138#define pfn_valid(pfn) (((pfn)-(pfn_base)) < max_mapnr)
139#define virt_addr_valid(kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT) 132#define virt_addr_valid(kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT)
140 133
141#define virt_to_phys __pa 134#define virt_to_phys __pa