diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-03-23 16:08:30 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-03-23 16:08:30 +0000 |
commit | 3ea8990ba9276efe1c2bbde129074f8dd9b8c992 (patch) | |
tree | 4b0acb5ebb80229ea6db55b8bd4907075e62e500 /sys/arch/i386/stand | |
parent | 1eab03134bb87b4d08f22d23fbf469607f6cf05c (diff) |
Avoid using DEV_BSHIFT, and use DEV_BSIZE instead.
Diffstat (limited to 'sys/arch/i386/stand')
-rw-r--r-- | sys/arch/i386/stand/libsa/biosdev.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/i386/stand/libsa/biosdev.c b/sys/arch/i386/stand/libsa/biosdev.c index 3d1e1aba85f..2967e7ea162 100644 --- a/sys/arch/i386/stand/libsa/biosdev.c +++ b/sys/arch/i386/stand/libsa/biosdev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: biosdev.c,v 1.86 2012/11/01 00:55:38 jsing Exp $ */ +/* $OpenBSD: biosdev.c,v 1.87 2013/03/23 16:08:29 deraadt Exp $ */ /* * Copyright (c) 1996 Michael Shalayeff @@ -258,8 +258,8 @@ biosd_io(int rw, bios_diskinfo_t *bd, u_int off, int nsect, void *buf) * routine. However, the El Torito spec says that the * BIOS will work in 2,048-byte sectors. So shift back. */ - off >>= (ISO_DEFAULT_BLOCK_SHIFT - DEV_BSHIFT); - nsect >>= (ISO_DEFAULT_BLOCK_SHIFT - DEV_BSHIFT); + off /= (ISO_DEFAULT_BLOCK_SIZE / DEV_BSIZE); + nsect /= (ISO_DEFAULT_BLOCK_SIZE / DEV_BSIZE); } /* |