summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorallanjude <allanjude@FreeBSD.org>2016-04-22 16:20:58 +0000
committerallanjude <allanjude@FreeBSD.org>2016-04-22 16:20:58 +0000
commita0fa43a85103cc99350cca684cb08a4b647c76bd (patch)
tree90ab688cb65c7cfb70cb0326bb948bc7a771706c
parent84e42ee622ad2d0af29da83eacff82f1da80f602 (diff)
downloadFreeBSD-src-a0fa43a85103cc99350cca684cb08a4b647c76bd.zip
FreeBSD-src-a0fa43a85103cc99350cca684cb08a4b647c76bd.tar.gz
Fix more pc98 build issues re: bcache change
Reported by: bz, emaste
-rw-r--r--sys/boot/pc98/libpc98/biosdisk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/boot/pc98/libpc98/biosdisk.c b/sys/boot/pc98/libpc98/biosdisk.c
index 3ec6c57..be364c6 100644
--- a/sys/boot/pc98/libpc98/biosdisk.c
+++ b/sys/boot/pc98/libpc98/biosdisk.c
@@ -737,13 +737,13 @@ bd_strategy(void *devdata, int rw, daddr_t dblk, size_t offset, size_t size,
char *buf, size_t *rsize)
{
struct bcache_devdata bcd;
- struct i386_devdesc *dev = f->f_devdata;
+ struct i386_devdesc *dev = devdata;
struct open_disk *od = (struct open_disk *)(dev->d_kind.biosdisk.data);
bcd.dv_strategy = bd_realstrategy;
bcd.dv_devdata = devdata;
bcd.dv_cache = BD(dev).bd_bcache;
- return(bcache_strategy(&bcd, od->od_unit, rw, dblk+od->od_boff, offset,
+ return(bcache_strategy(&bcd, rw, dblk+od->od_boff, offset,
size, buf, rsize));
}
OpenPOWER on IntegriCloud