diff options
author | kato <kato@FreeBSD.org> | 1997-09-10 16:34:00 +0000 |
---|---|---|
committer | kato <kato@FreeBSD.org> | 1997-09-10 16:34:00 +0000 |
commit | e1818cc172675247a3189ca3f3ce6286b7243b23 (patch) | |
tree | 446ae6dfdb2fbb345e61dc8218ae6a815933c5c1 | |
parent | b2dea2f7b723343421924f598ef6658d378f15f3 (diff) | |
download | FreeBSD-src-e1818cc172675247a3189ca3f3ce6286b7243b23.zip FreeBSD-src-e1818cc172675247a3189ca3f3ce6286b7243b23.tar.gz |
Synchronize with sys/i386/isa/wd.c revision 1.137.
-rw-r--r-- | sys/pc98/pc98/wd.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/pc98/pc98/wd.c b/sys/pc98/pc98/wd.c index e3da9df..94778d6 100644 --- a/sys/pc98/pc98/wd.c +++ b/sys/pc98/pc98/wd.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)wd.c 7.2 (Berkeley) 5/9/91 - * $Id: wd.c,v 1.29 1997/08/09 06:41:36 kato Exp $ + * $Id: wd.c,v 1.30 1997/09/05 10:16:02 kato Exp $ */ /* TODO: @@ -2328,8 +2328,12 @@ out: return (EIO); } while (blkcnt != 0) { - pmap_enter(kernel_pmap, (vm_offset_t)CADDR1, trunc_page(addr), - VM_PROT_READ, TRUE); + if (is_adapter_memory((vm_offset_t)addr)) + pmap_enter(kernel_pmap, (vm_offset_t)CADDR1, + trunc_page(0), VM_PROT_READ, TRUE); + else + pmap_enter(kernel_pmap, (vm_offset_t)CADDR1, + trunc_page(addr), VM_PROT_READ, TRUE); /* Ready to send data? */ DELAY(5); /* ATA spec */ |