diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-09-22 19:16:08 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-09-22 19:16:08 +0000 |
commit | f7b6a6dc883c2589c426272085ee4fdb0f0472af (patch) | |
tree | f2600b5283d25b64956f3667c9d0639ba9ac196d /sys/arch | |
parent | 7b0347847c0d6eea5eea4d695761d24f1b151d53 (diff) |
Dump memory above 4GB correctly.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/sparc64/sparc64/machdep.c | 6 |
1 files changed, 3 insertions, 3 deletions
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) |