patch-2.4.0-test5 linux/include/asm-ia64/pgtable.h
Next file: linux/include/asm-ia64/string.h
Previous file: linux/include/asm-ia64/offsets.h
Back to the patch index
Back to the overall index
- Lines: 22
- Date:
Tue Jul 18 15:03:56 2000
- Orig file:
v2.4.0-test4/linux/include/asm-ia64/pgtable.h
- Orig date:
Fri Jun 23 21:55:11 2000
diff -u --recursive --new-file v2.4.0-test4/linux/include/asm-ia64/pgtable.h linux/include/asm-ia64/pgtable.h
@@ -305,6 +305,21 @@
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)
{
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)