Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern use 64bit arithmetic to compute sectors-per-unit
details: https://anonhg.NetBSD.org/src/rev/e692df14da08
branches: trunk
changeset: 790729:e692df14da08
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Sat Oct 19 22:36:57 2013 +0000
description:
use 64bit arithmetic to compute sectors-per-unit
diffstat:
sys/kern/subr_disk.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r a9fac5a235e9 -r e692df14da08 sys/kern/subr_disk.c
--- a/sys/kern/subr_disk.c Sat Oct 19 22:35:02 2013 +0000
+++ b/sys/kern/subr_disk.c Sat Oct 19 22:36:57 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_disk.c,v 1.102 2013/05/29 00:47:49 christos Exp $ */
+/* $NetBSD: subr_disk.c,v 1.103 2013/10/19 22:36:57 mlelstv Exp $ */
/*-
* Copyright (c) 1996, 1997, 1999, 2000, 2009 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_disk.c,v 1.102 2013/05/29 00:47:49 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_disk.c,v 1.103 2013/10/19 22:36:57 mlelstv Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@@ -529,7 +529,7 @@
#endif
return;
}
- dg->dg_secperunit = dg->dg_nsectors *
+ dg->dg_secperunit = (int64_t) dg->dg_nsectors *
dg->dg_ntracks * dg->dg_ncylinders;
}
Home |
Main Index |
Thread Index |
Old Index