patch-2.3.48 linux/include/asm-ia64/pgalloc.h
Next file: linux/include/asm-ia64/pgtable.h
Previous file: linux/include/asm-ia64/page.h
Back to the patch index
Back to the overall index
- Lines: 35
- Date:
Thu Feb 24 10:14:29 2000
- Orig file:
v2.3.47/linux/include/asm-ia64/pgalloc.h
- Orig date:
Thu Feb 10 17:11:20 2000
diff -u --recursive --new-file v2.3.47/linux/include/asm-ia64/pgalloc.h linux/include/asm-ia64/pgalloc.h
@@ -8,8 +8,8 @@
* This hopefully works with any (fixed) ia-64 page-size, as defined
* in <asm/page.h> (currently 8192).
*
- * Copyright (C) 1998, 1999 Hewlett-Packard Co
- * Copyright (C) 1998, 1999 David Mosberger-Tang <davidm@hpl.hp.com>
+ * Copyright (C) 1998-2000 Hewlett-Packard Co
+ * Copyright (C) 1998-2000 David Mosberger-Tang <davidm@hpl.hp.com>
* Copyright (C) 2000, Goutham Rao <goutham.rao@intel.com>
*/
@@ -252,6 +252,23 @@
flush_tlb_page (struct vm_area_struct *vma, unsigned long addr)
{
flush_tlb_range(vma->vm_mm, addr, addr + PAGE_SIZE);
+}
+
+/*
+ * Flush the TLB entries mapping the virtually mapped linear page
+ * table corresponding to address range [START-END).
+ */
+static inline void
+flush_tlb_pgtables (struct mm_struct *mm, unsigned long start, unsigned long end)
+{
+ /*
+ * XXX fix mmap(), munmap() et al to guarantee that there are no mappings
+ * across region boundaries. --davidm 00/02/23
+ */
+ if (rgn_index(start) != rgn_index(end)) {
+ printk("flush_tlb_pgtables: can't flush across regions!!\n");
+ }
+ flush_tlb_range(mm, ia64_thash(start), ia64_thash(end));
}
#endif /* _ASM_IA64_PGALLOC_H */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)