patch-1.3.83 linux/mm/mprotect.c
Next file: linux/mm/mremap.c
Previous file: linux/mm/memory.c
Back to the patch index
Back to the overall index
- Lines: 15
- Date:
Wed Apr 3 10:59:33 1996
- Orig file:
v1.3.82/linux/mm/mprotect.c
- Orig date:
Mon Dec 11 15:41:12 1995
diff -u --recursive --new-file v1.3.82/linux/mm/mprotect.c linux/mm/mprotect.c
@@ -75,12 +75,13 @@
unsigned long beg = start;
dir = pgd_offset(current->mm, start);
+ flush_cache_range(current->mm, beg, end);
while (start < end) {
change_pmd_range(dir, start, end - start, newprot);
start = (start + PGDIR_SIZE) & PGDIR_MASK;
dir++;
}
- invalidate_range(current->mm, beg, end);
+ flush_tlb_range(current->mm, beg, end);
return;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this