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
- Lines: 19
- Date:
Sat Sep 6 10:10:48 1997
- Orig file:
v2.1.53/linux/kernel/module.c
- Orig date:
Mon Jul 7 08:18:56 1997
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