Richard.
--- linuxvme-2.1.106/kernel/kmod.c- Tue Jun 23 18:50:09 1998
+++ linuxvme-2.1.106/kernel/kmod.c Tue Jun 23 19:46:29 1998
@@ -14,8 +14,10 @@
#include <linux/sched.h>
#include <linux/types.h>
#include <linux/unistd.h>
+#include <linux/mm.h>
#include <asm/smp_lock.h>
#include <asm/uaccess.h>
+#include <asm/pgtable.h>
/*
modprobe_path is set via /proc/sys.
@@ -48,6 +50,16 @@
{
char *argv[] = { modprobe_path, "-s", "-k", (char*)module_name, NULL};
int i;
+
+ /*
+ * The MMU ATC entries need flushing somewhere round here. This
+ * thread was created with CLONE_VM, so there was no cause to
+ * flush it there. exec_mmap() called as a result of the
+ * following execve() finds current->mm->count=2, so that doesn't
+ * flush the MMU either.
+ */
+
+ flush_tlb_mm(current->mm);
use_init_file_context();
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu