summaryrefslogtreecommitdiffstats
path: root/include/asm-ia64/pgtable.h
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-07-18 23:31:08 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-07-18 23:31:08 +0000
commite8f9b6396e79654ea5932f64131cafbe8caadfb1 (patch)
tree90cf8b3a2475a774369eda22247cab7874fd7bbf /include/asm-ia64/pgtable.h
parentd4c419dfaa853f5db107973976d4215ae648e976 (diff)
Merge with Linux 2.4.0-test5-pre2.
Diffstat (limited to 'include/asm-ia64/pgtable.h')
-rw-r--r--include/asm-ia64/pgtable.h16
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)
{