patch-2.1.54 linux/kernel/module.c

Next file: linux/kernel/sys.c
Previous file: linux/kernel/exit.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.53/linux/kernel/module.c linux/kernel/module.c
@@ -9,6 +9,7 @@
 #include <linux/vmalloc.h>
 #include <linux/smp.h>
 #include <linux/smp_lock.h>
+#include <asm/pgtable.h>
 
 /*
  * Originally by Anonymous (as far as I know...)
@@ -293,6 +294,10 @@
 		error = -EFAULT;
 		goto err3;
 	}
+
+	/* On some machines it is necessary to do something here
+	   to make the I and D caches consistent.  */
+	flush_icache_range((unsigned long)mod, (unsigned long)mod + mod->size);
 
 	/* Update module references.  */
 	mod->next = mod_tmp.next;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov