From 5a6fb3a7da69f11fbe5093f4a2cc7a4d86df5b36 Mon Sep 17 00:00:00 2001 From: phk Date: Thu, 2 May 1996 14:21:14 +0000 Subject: removed: CLBYTES PD_SHIFT PGSHIFT NBPG PGOFSET CLSIZELOG2 CLSIZE pdei() ptei() kvtopte() ptetov() ispt() ptetoav() &c &c new: NPDEPG Major macro cleanup. --- sys/scsi/sd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/scsi') diff --git a/sys/scsi/sd.c b/sys/scsi/sd.c index 56d0b15..66be193 100644 --- a/sys/scsi/sd.c +++ b/sys/scsi/sd.c @@ -14,7 +14,7 @@ * * Ported to run under 386BSD by Julian Elischer (julian@dialix.oz.au) Sept 1992 * - * $Id: sd.c,v 1.86 1996/03/10 07:13:12 gibbs Exp $ + * $Id: sd.c,v 1.87 1996/03/27 18:50:09 bde Exp $ */ #include "opt_bounce.h" @@ -932,7 +932,7 @@ sddump(dev_t dev) return (ENXIO); /* Convert to disk sectors */ - num = (u_int32_t) num * NBPG / sd->params.secsiz; /* XXX it must be 512 */ + num = (u_int32_t) num * PAGE_SIZE / sd->params.secsiz; /* XXX it must be 512 */ /* check if controller active */ if (sddoingadump) -- cgit v1.1