aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-ia64/pgtable.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-ia64/pgtable.h')
-rw-r--r--include/asm-ia64/pgtable.h26
1 files changed, 0 insertions, 26 deletions
diff --git a/include/asm-ia64/pgtable.h b/include/asm-ia64/pgtable.h
index bbf6dd757003..fecfd0f68961 100644
--- a/include/asm-ia64/pgtable.h
+++ b/include/asm-ia64/pgtable.h
@@ -561,32 +561,6 @@ do { \
561#define __HAVE_ARCH_PGD_OFFSET_GATE 561#define __HAVE_ARCH_PGD_OFFSET_GATE
562#define __HAVE_ARCH_LAZY_MMU_PROT_UPDATE 562#define __HAVE_ARCH_LAZY_MMU_PROT_UPDATE
563 563
564/*
565 * Override for pgd_addr_end() to deal with the virtual address space holes
566 * in each region. In regions 0..4 virtual address bits are used like this:
567 * +--------+------+--------+-----+-----+--------+
568 * | pgdhi3 | rsvd | pgdlow | pmd | pte | offset |
569 * +--------+------+--------+-----+-----+--------+
570 * 'pgdlow' overflows to pgdhi3 (a.k.a. region bits) leaving rsvd==0
571 */
572#define IA64_PGD_OVERFLOW (PGDIR_SIZE << (PAGE_SHIFT-6))
573
574#define pgd_addr_end(addr, end) \
575({ unsigned long __boundary = ((addr) + PGDIR_SIZE) & PGDIR_MASK; \
576 if (REGION_NUMBER(__boundary) < 5 && \
577 __boundary & IA64_PGD_OVERFLOW) \
578 __boundary += (RGN_SIZE - 1) & ~(IA64_PGD_OVERFLOW - 1);\
579 (__boundary - 1 < (end) - 1)? __boundary: (end); \
580})
581
582#define pmd_addr_end(addr, end) \
583({ unsigned long __boundary = ((addr) + PMD_SIZE) & PMD_MASK; \
584 if (REGION_NUMBER(__boundary) < 5 && \
585 __boundary & IA64_PGD_OVERFLOW) \
586 __boundary += (RGN_SIZE - 1) & ~(IA64_PGD_OVERFLOW - 1);\
587 (__boundary - 1 < (end) - 1)? __boundary: (end); \
588})
589
590#include <asm-generic/pgtable-nopud.h> 564#include <asm-generic/pgtable-nopud.h>
591#include <asm-generic/pgtable.h> 565#include <asm-generic/pgtable.h>
592 566