aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-sparc64/pgtable.h
diff options
context:
space:
mode:
authorHugh Dickins <hugh@veritas.com>2005-04-19 16:29:17 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org.(none)>2005-04-19 16:29:17 -0400
commit8f6c99c11ae63ce887686f3e51c412cc4d8d8a7d (patch)
tree4c3f29ce21f2a69f9105581c95e07de5bc5bb7aa /include/asm-sparc64/pgtable.h
parent3bf5ee95648c694bac4d13529563c230cd4fe5f2 (diff)
[PATCH] freepgt: remove arch pgd_addr_end
ia64 and sparc64 hurriedly had to introduce their own variants of pgd_addr_end, to leapfrog over the holes in their virtual address spaces which the final clear_page_range suddenly presented when converted from pgd_index to pgd_addr_end. But now that free_pgtables respects the vma list, those holes are never presented, and the arch variants can go. Signed-off-by: Hugh Dickins <hugh@veritas.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-sparc64/pgtable.h')
-rw-r--r--include/asm-sparc64/pgtable.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/include/asm-sparc64/pgtable.h b/include/asm-sparc64/pgtable.h
index ca04ac105b69..c93011574843 100644
--- a/include/asm-sparc64/pgtable.h
+++ b/include/asm-sparc64/pgtable.h
@@ -424,21 +424,6 @@ extern int io_remap_pfn_range(struct vm_area_struct *vma, unsigned long from,
424#define GET_IOSPACE(pfn) (pfn >> (BITS_PER_LONG - 4)) 424#define GET_IOSPACE(pfn) (pfn >> (BITS_PER_LONG - 4))
425#define GET_PFN(pfn) (pfn & 0x0fffffffffffffffUL) 425#define GET_PFN(pfn) (pfn & 0x0fffffffffffffffUL)
426 426
427/* Override for {pgd,pmd}_addr_end() to deal with the virtual address
428 * space hole. We simply sign extend bit 43.
429 */
430#define pgd_addr_end(addr, end) \
431({ unsigned long __boundary = ((addr) + PGDIR_SIZE) & PGDIR_MASK; \
432 __boundary = ((long) (__boundary << 20)) >> 20; \
433 (__boundary - 1 < (end) - 1)? __boundary: (end); \
434})
435
436#define pmd_addr_end(addr, end) \
437({ unsigned long __boundary = ((addr) + PMD_SIZE) & PMD_MASK; \
438 __boundary = ((long) (__boundary << 20)) >> 20; \
439 (__boundary - 1 < (end) - 1)? __boundary: (end); \
440})
441
442#include <asm-generic/pgtable.h> 427#include <asm-generic/pgtable.h>
443 428
444/* We provide our own get_unmapped_area to cope with VA holes for userland */ 429/* We provide our own get_unmapped_area to cope with VA holes for userland */