patch-2.3.30 linux/arch/sparc64/mm/generic.c
Next file: linux/drivers/acorn/char/serial-atomwide.c
Previous file: linux/arch/sparc64/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/sparc64/mm/generic.c
- Orig date:
Mon Aug 2 22:07:16 1999
diff -u --recursive --new-file v2.3.29/linux/arch/sparc64/mm/generic.c linux/arch/sparc64/mm/generic.c
@@ -127,7 +127,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)