diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-07-19 20:20:00 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-07-19 20:20:00 +0000 |
commit | 7ffab43796bd486c301f4a09b79c0d22496eecd0 (patch) | |
tree | db8dd3f075e1900630c3047504e31146eeb302c8 /sys/arch/vax | |
parent | 9d23c7249120d4db06064ef391293facb928aa56 (diff) |
Remove code checking for memory residence of pages in disk_reallymapin(),
it is not needed; from NetBSD.
Diffstat (limited to 'sys/arch/vax')
-rw-r--r-- | sys/arch/vax/vax/disksubr.c | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/sys/arch/vax/vax/disksubr.c b/sys/arch/vax/vax/disksubr.c index 466b41e4dc3..86ee2e25261 100644 --- a/sys/arch/vax/vax/disksubr.c +++ b/sys/arch/vax/vax/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.27 2006/03/15 20:20:41 miod Exp $ */ +/* $OpenBSD: disksubr.c,v 1.28 2006/07/19 20:19:59 miod Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1999/06/30 18:48:06 ragge Exp $ */ /* @@ -298,7 +298,7 @@ disk_reallymapin(bp, map, reg, flag) volatile pt_entry_t *io; pt_entry_t *pte; struct pcb *pcb; - int pfnum, npf, o, i; + int pfnum, npf, o; caddr_t addr; o = (int)bp->b_data & VAX_PGOFSET; @@ -318,21 +318,6 @@ disk_reallymapin(bp, map, reg, flag) pte = uvtopte(addr, pcb); } - /* - * When we are doing DMA to user space, be sure that all pages - * we want to transfer to is mapped. WHY DO WE NEED THIS??? - * SHOULDN'T THEY ALWAYS BE MAPPED WHEN DOING THIS??? - */ - for (i = 0; i < (npf - 1); i++) { - if ((pte[i] & PG_FRAME) == 0) { - int rv; - rv = uvm_fault(&p->p_vmspace->vm_map, - (unsigned)addr + i * VAX_NBPG, 0, - VM_PROT_READ|VM_PROT_WRITE); - if (rv) - panic("DMA to nonexistent page, %d", rv); - } - } if (map) { io = &map[reg]; while (--npf > 0) { |