patch-2.3.30 linux/arch/sparc/mm/generic.c
Next file: linux/arch/sparc64/math-emu/math.c
Previous file: linux/arch/sparc/math-emu/sfp-machine.h
Back to the patch index
Back to the overall index
-  Lines: 10
-  Date:
Mon Dec  6 10:17:31 1999
-  Orig file: 
v2.3.29/linux/arch/sparc/mm/generic.c
-  Orig date: 
Mon Nov 16 10:37:28 1998
diff -u --recursive --new-file v2.3.29/linux/arch/sparc/mm/generic.c linux/arch/sparc/mm/generic.c
@@ -91,7 +91,9 @@
 		pte_t * pte = pte_alloc(pmd, address);
 		if (!pte)
 			return -ENOMEM;
+		spin_lock(¤t->mm->page_table_lock);
 		io_remap_pte_range(pte, address, end - address, address + offset, prot, space);
+		spin_unlock(¤t->mm->page_table_lock);
 		address = (address + PMD_SIZE) & PMD_MASK;
 		pmd++;
 	} while (address < end);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)