patch-2.3.48 linux/include/asm-ia64/pgtable.h

Next file: linux/include/asm-ia64/processor.h
Previous file: linux/include/asm-ia64/pgalloc.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.47/linux/include/asm-ia64/pgtable.h linux/include/asm-ia64/pgtable.h
@@ -294,6 +294,18 @@
  */
 #define pgprot_noncached(prot)	__pgprot((pgprot_val(prot) & ~_PAGE_MA_MASK) | _PAGE_MA_UC)
 
+/*
+ * Return the region index for virtual address ADDRESS.
+ */
+extern __inline__ unsigned long
+rgn_index (unsigned long address)
+{
+	ia64_va a;
+
+	a.l = address;
+	return a.f.reg;
+}
+
 extern __inline__ unsigned long
 pgd_index (unsigned long address)
 {
@@ -347,7 +359,7 @@
  * execution context?).
  *
  */
-#if 0
+#if 1
 # define update_mmu_cache(vma,address,pte)
 #else
 # define update_mmu_cache(vma,address,pte)							\

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)