Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x68k/stand/libsa Fix CD support (again!).
details: https://anonhg.NetBSD.org/src/rev/c9e1c671fee4
branches: trunk
changeset: 779793:c9e1c671fee4
user: minoura <minoura%NetBSD.org@localhost>
date: Tue Jun 19 12:59:17 2012 +0000
description:
Fix CD support (again!).
diffstat:
sys/arch/x68k/stand/libsa/sdcd.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 649f2574f60a -r c9e1c671fee4 sys/arch/x68k/stand/libsa/sdcd.c
--- a/sys/arch/x68k/stand/libsa/sdcd.c Tue Jun 19 10:05:53 2012 +0000
+++ b/sys/arch/x68k/stand/libsa/sdcd.c Tue Jun 19 12:59:17 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sdcd.c,v 1.12 2012/03/20 12:38:53 minoura Exp $ */
+/* $NetBSD: sdcd.c,v 1.13 2012/06/19 12:59:17 minoura Exp $ */
/*
* Copyright (c) 2001 MINOURA Makoto.
@@ -362,6 +362,7 @@
struct sdcd_softc *sc = arg;
/* cast dblk to avoid divdi3; 32bit is enough even for BD-ROMs. */
- return sdstrategy(arg, rw, (unsigned int) dblk / sc->sc_blocksize,
+ return sdstrategy(arg, rw,
+ (unsigned int) dblk / (sc->sc_blocksize/DEV_BSIZE),
size, buf, rsize);
}
Home |
Main Index |
Thread Index |
Old Index