summaryrefslogtreecommitdiffstats
path: root/sys/sparc64
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2011-11-27 15:49:46 +0000
committermarius <marius@FreeBSD.org>2011-11-27 15:49:46 +0000
commiteda2646a46d810e9a570a10d17f67ec11e965b21 (patch)
tree08ad2cd15e0b9406362d38fac5ff8600cdd62d80 /sys/sparc64
parentd4bd483becb3c4303d13eb71ecf8cafbd7258ac1 (diff)
downloadFreeBSD-src-eda2646a46d810e9a570a10d17f67ec11e965b21.zip
FreeBSD-src-eda2646a46d810e9a570a10d17f67ec11e965b21.tar.gz
Update comment.
Diffstat (limited to 'sys/sparc64')
-rw-r--r--sys/sparc64/sparc64/ata_machdep.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/sys/sparc64/sparc64/ata_machdep.c b/sys/sparc64/sparc64/ata_machdep.c
index 102748d..85ad14c 100644
--- a/sys/sparc64/sparc64/ata_machdep.c
+++ b/sys/sparc64/sparc64/ata_machdep.c
@@ -36,14 +36,13 @@ sparc64_ata_disk_firmware_geom_adjust(struct disk *disk)
{
/*
- * The Sun disk label only uses 16-bit fields for cylinders,
- * heads and sectors so the geometry of large IDE disks has
- * to be adjusted. If the disk is > 32GB at 16 heads and 63
- * sectors, the sectors have to be adjusted to 255. If the
- * the disk is even > 128GB, additionally adjust the heads
- * to 255.
- * XXX the OpenSolaris dad(7D) driver limits the mediasize
- * to 128GB.
+ * The VTOC8 disk label only uses 16-bit fields for cylinders, heads
+ * and sectors so the geometry of large disks has to be adjusted.
+ * If the disk is > 32GB at 16 heads and 63 sectors, adjust to 255
+ * sectors (this matches what the OpenSolaris dad(7D) driver does).
+ * If the the disk is even > 128GB, additionally adjust the heads to
+ * 255. This allows disks up to the 2TB limit of the extended VTOC8.
+ * XXX the OpenSolaris dad(7D) driver limits the mediasize to 128GB.
*/
if (disk->d_mediasize > (off_t)65535 * 16 * 63 * disk->d_sectorsize)
disk->d_fwsectors = 255;
OpenPOWER on IntegriCloud