diff options
Diffstat (limited to 'include/asm-ia64/pgtable.h')
-rw-r--r-- | include/asm-ia64/pgtable.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/asm-ia64/pgtable.h b/include/asm-ia64/pgtable.h index ce0dea3fe..7f4b4efaa 100644 --- a/include/asm-ia64/pgtable.h +++ b/include/asm-ia64/pgtable.h @@ -111,6 +111,7 @@ #include <asm/bitops.h> #include <asm/mmu_context.h> +#include <asm/processor.h> #include <asm/system.h> /* @@ -305,6 +306,21 @@ rgn_index (unsigned long address) return a.f.reg; } +/* + * Return the region offset for virtual address ADDRESS. + */ +extern __inline__ unsigned long +rgn_offset (unsigned long address) +{ + ia64_va a; + + a.l = address; + return a.f.off; +} + +#define RGN_SIZE (1UL << 61) +#define RGN_KERNEL 7 + extern __inline__ unsigned long pgd_index (unsigned long address) { |