Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/amiga/amiga btoc is already rounding up to click si...



details:   https://anonhg.NetBSD.org/src/rev/21e6c32cef18
branches:  trunk
changeset: 809013:21e6c32cef18
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Sat Jun 13 07:35:50 2015 +0000

description:
btoc is already rounding up to click size, use predefined ctod macro
to translate to disk blocks.

diffstat:

 sys/arch/amiga/amiga/machdep.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 55d59d010706 -r 21e6c32cef18 sys/arch/amiga/amiga/machdep.c
--- a/sys/arch/amiga/amiga/machdep.c    Sat Jun 13 04:53:13 2015 +0000
+++ b/sys/arch/amiga/amiga/machdep.c    Sat Jun 13 07:35:50 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.244 2015/06/07 20:00:11 mlelstv Exp $    */
+/*     $NetBSD: machdep.c,v 1.245 2015/06/13 07:35:50 mlelstv Exp $    */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -50,7 +50,7 @@
 #include "empm.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.244 2015/06/07 20:00:11 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.245 2015/06/13 07:35:50 mlelstv Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -535,7 +535,7 @@
                else if (dumplo == 0)
                        dumplo = nblks - btodb(ctob(dumpsize));
        }
-       dumplo -= btodb(ctob(btoc(MDHDRSIZE + ctob(1) - 1)));
+       dumplo -= ctod(btoc(MDHDRSIZE));
        /*
         * Don't dump on the first PAGE_SIZE (why PAGE_SIZE?)
         * in case the dump device includes a disk label.



Home | Main Index | Thread Index | Old Index