diff options
Diffstat (limited to 'sys/arch/amd64/stand/libsa/biosdev.c')
-rw-r--r-- | sys/arch/amd64/stand/libsa/biosdev.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/amd64/stand/libsa/biosdev.c b/sys/arch/amd64/stand/libsa/biosdev.c index 2a111a9c918..c44c84da20b 100644 --- a/sys/arch/amd64/stand/libsa/biosdev.c +++ b/sys/arch/amd64/stand/libsa/biosdev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: biosdev.c,v 1.11 2011/03/11 21:08:25 krw Exp $ */ +/* $OpenBSD: biosdev.c,v 1.12 2011/03/13 00:13:52 deraadt Exp $ */ /* * Copyright (c) 1996 Michael Shalayeff @@ -243,7 +243,7 @@ EDD_rw(int rw, int dev, u_int64_t daddr, u_int32_t nblk, void *buf) * Read given sector, handling retry/errors/etc. */ int -biosd_io(int rw, bios_diskinfo_t *bd, daddr_t off, int nsect, void *buf) +biosd_io(int rw, bios_diskinfo_t *bd, daddr32_t off, int nsect, void *buf) { int dev = bd->bios_number; int j, error; @@ -436,7 +436,7 @@ bios_getdisklabel(bios_diskinfo_t *bd, struct disklabel *label) printf("loading disklabel @ %u\n", off); #endif /* read disklabel */ - error = biosd_io(F_READ, bd, (daddr_t)start, 1, buf); + error = biosd_io(F_READ, bd, (daddr32_t)start, 1, buf); if(error) return("failed to read disklabel"); @@ -645,7 +645,7 @@ biosdisk_errno(u_int error) } int -biosstrategy(void *devdata, int rw, daddr_t blk, size_t size, void *buf, +biosstrategy(void *devdata, int rw, daddr32_t blk, size_t size, void *buf, size_t *rsize) { struct diskinfo *dip = (struct diskinfo *)devdata; |