summaryrefslogtreecommitdiffstats
path: root/sys/boot/common
diff options
context:
space:
mode:
authorae <ae@FreeBSD.org>2012-08-16 06:45:58 +0000
committerae <ae@FreeBSD.org>2012-08-16 06:45:58 +0000
commite3f0c35a5bc7858266be5dc12cf0a43050bda01e (patch)
tree6f564e696b54d07d6dbe8c1f027748c40ae97f01 /sys/boot/common
parent7af781f113906e24538c26955dff8be265531544 (diff)
downloadFreeBSD-src-e3f0c35a5bc7858266be5dc12cf0a43050bda01e.zip
FreeBSD-src-e3f0c35a5bc7858266be5dc12cf0a43050bda01e.tar.gz
Add comment why the code has been disabled.
Requested by: rpaulo
Diffstat (limited to 'sys/boot/common')
-rw-r--r--sys/boot/common/part.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/boot/common/part.c b/sys/boot/common/part.c
index 28c8b79..9a30df8 100644
--- a/sys/boot/common/part.c
+++ b/sys/boot/common/part.c
@@ -372,7 +372,7 @@ ptable_ebrread(struct ptable *table, void *dev, diskread_t dread)
if (buf == NULL)
return (table);
for (i = 0; i < MAXEBRENTRIES; i++) {
-#if 0
+#if 0 /* Some BIOSes return an incorrect number of sectors */
if (offset >= table->sectors)
break;
#endif
@@ -665,7 +665,7 @@ ptable_open(void *dev, off_t sectors, uint16_t sectorsize,
end = le32toh(dp[i].dp_size);
if (start == 0 || end == 0)
continue;
-#if 0
+#if 0 /* Some BIOSes return an incorrect number of sectors */
if (start + end - 1 >= sectors)
continue; /* XXX: ignore */
#endif
OpenPOWER on IntegriCloud