[patch 21/56] openmosix/openmosix-page-protect_04.patch
Florian Delizy <[email protected]> Thu, 02 Nov 2006 22:56:28 +0100
| Newsgroups | gmane.linux.cluster.openmosix.devel |
|---|---|
| Message-ID | <[email protected]> |
Removed some commented code and fixed the page protection bits. ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ openMosix-devel mailing list openMosix-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/openmosix-devel
openmosix-page-protect_04.patch
(text/x-patch, 1.2 KB)
Removed some commented code and fixed the page protection bits.
Index: linux/hpc/migrecv.c
===================================================================
--- linux.orig/hpc/migrecv.c 2006-11-02 22:52:02.000000000 +0100
+++ linux/hpc/migrecv.c 2006-11-02 22:52:03.000000000 +0100
@@ -241,7 +241,7 @@
OMDEBUG_MIG(2, "MIG_VMA [%lx, %ld]\n", a->vm_start, a->vm_size);
- /* FIXME : Temporary disabled */
+ /* FIXME : Temporary disabled */
if (0 && a->vm_file) {
file = (task_test_dflags(p, DREMOTE))
? task_rfiles_get(p, a->vm_file, -1, a->i_size)
@@ -258,23 +258,9 @@
if (a->vm_flags & VM_EXECUTABLE)
flags |= MAP_EXECUTABLE;
- /* VM_GROWSDOWN = 0x0100*/
- /* VM_DENYWRITE = 0x0800*/
- /* VM_EXECUTABLE = 0x1000*/
-
- /* MAP_GROWSDOWN = 0x0100*/
- /* MAP_DENYWRITE = 0x0800*/
- /* MAP_EXECUTABLE = 0x1000*/
-
-
- /* flags=a->vm_flags;*/
-
/* copy VM_(READ|WRITE|EXEC) bits to prot */
- /* prot |= (a->vm_flags & (VM_READ | VM_WRITE | VM_EXEC));*/
+ prot |= (a->vm_flags & (VM_READ | VM_WRITE | VM_EXEC));
prot = (VM_READ | VM_WRITE | VM_EXEC);
- /* VM_READ = 0x1*/
- /* VM_WRITE = 0x2*/
- /* VM_EXEC = 0x4*/
/* mmap stuff */
down_write(&p->mm->mmap_sem);