summaryrefslogtreecommitdiff
path: root/sys/arch/sparc
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2006-08-11 21:32:41 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2006-08-11 21:32:41 +0000
commitd6448bf3ca880c1ab8cd60de5147e4b15f64bb40 (patch)
tree87e8130583422e2d14309ce2605834274daf03a0 /sys/arch/sparc
parenta1a84da3924b3902cc76313f4ae1661cfe837170 (diff)
Use d_secperunit rather than 0x1fffffff as the default value for
RAW_PART's p_size. Since d_secperunit is initialized to 0x1fffffff if not specified there should be no need to use the magic number again. And if d_secperunit was specified then that value should be used instead of the magic number. This was already being done for hp300, luna88k, mac68k, mvme68k, mvme88k. Should be a no-op.
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r--sys/arch/sparc/sparc/disksubr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc/sparc/disksubr.c b/sys/arch/sparc/sparc/disksubr.c
index 127d6b7a8a0..d1b6f1a20ed 100644
--- a/sys/arch/sparc/sparc/disksubr.c
+++ b/sys/arch/sparc/sparc/disksubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disksubr.c,v 1.39 2006/03/15 20:20:41 miod Exp $ */
+/* $OpenBSD: disksubr.c,v 1.40 2006/08/11 21:32:40 krw Exp $ */
/* $NetBSD: disksubr.c,v 1.16 1996/04/28 20:25:59 thorpej Exp $ */
/*
@@ -94,7 +94,7 @@ readdisklabel(dev, strat, lp, clp, spoofonly)
lp->d_partitions[i].p_offset = 0;
}
if (lp->d_partitions[i].p_size == 0)
- lp->d_partitions[i].p_size = 0x1fffffff;
+ lp->d_partitions[i].p_size = lp->d_secperunit;
lp->d_partitions[i].p_offset = 0;
lp->d_bbsize = 8192;
lp->d_sbsize = 64*1024; /* XXX ? */