From f7b6a6dc883c2589c426272085ee4fdb0f0472af Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Fri, 22 Sep 2006 19:16:08 +0000 Subject: Dump memory above 4GB correctly. --- sys/arch/sparc64/sparc64/machdep.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/arch') diff --git a/sys/arch/sparc64/sparc64/machdep.c b/sys/arch/sparc64/sparc64/machdep.c index 4156134e678..6da9236b801 100644 --- a/sys/arch/sparc64/sparc64/machdep.c +++ b/sys/arch/sparc64/sparc64/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.83 2006/06/21 21:53:32 jason Exp $ */ +/* $OpenBSD: machdep.c,v 1.84 2006/09/22 19:16:07 miod Exp $ */ /* $NetBSD: machdep.c,v 1.108 2001/07/24 19:30:14 eeh Exp $ */ /*- @@ -938,7 +938,7 @@ dumpsys() blkno += pmap_dumpsize(); printf("starting dump, blkno %d\n", blkno); for (mp = mem; mp->size; mp++) { - unsigned i = 0, n; + u_int64_t i = 0, n; paddr_t maddr = mp->start; #if 0 @@ -953,7 +953,7 @@ printf("starting dump, blkno %d\n", blkno); for (; i < mp->size; i += n) { n = mp->size - i; if (n > BYTES_PER_DUMP) - n = BYTES_PER_DUMP; + n = BYTES_PER_DUMP; /* print out how many MBs we have dumped */ if (i && (i % (1024*1024)) == 0) -- cgit v1.2.3