patch-2.3.99-pre6 linux/arch/alpha/mm/fault.c

Next file: linux/arch/alpha/mm/init.c
Previous file: linux/arch/alpha/kernel/traps.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre5/linux/arch/alpha/mm/fault.c linux/arch/alpha/mm/fault.c
@@ -4,6 +4,7 @@
  *  Copyright (C) 1995  Linus Torvalds
  */
 
+#include <linux/config.h>
 #include <linux/sched.h>
 #include <linux/kernel.h>
 #include <linux/mm.h>
@@ -34,7 +35,7 @@
  * Force a new ASN for a task.
  */
 
-#ifndef __SMP__
+#ifndef CONFIG_SMP
 unsigned long last_asn = ASN_FIRST_VERSION;
 #endif
 
@@ -139,7 +140,7 @@
 	 * make sure we exit gracefully rather than endlessly redo
 	 * the fault.
 	 */
-	fault = handle_mm_fault(current, vma, address, cause > 0);
+	fault = handle_mm_fault(mm, vma, address, cause > 0);
 	up(&mm->mmap_sem);
 
 	if (fault < 0)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)