summaryrefslogtreecommitdiffstats
path: root/sys/boot
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2009-04-14 14:19:18 +0000
committerjhb <jhb@FreeBSD.org>2009-04-14 14:19:18 +0000
commitba06a4b03e99a3cad46e210bafb5261048806cb5 (patch)
tree694341bf1227c658215d610e17483d068ce24047 /sys/boot
parent7bada89aea02a7eae90b2d067414afeceeb2c1c9 (diff)
downloadFreeBSD-src-ba06a4b03e99a3cad46e210bafb5261048806cb5.zip
FreeBSD-src-ba06a4b03e99a3cad46e210bafb5261048806cb5.tar.gz
Use a disk address instead of an int to hold the starting offset of an
open partition. This fixes access to partitions whose starting offset is >= 2 TB. Submitted by: "James R. Van Artsdalen" james jrv.org MFC after: 3 days
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/i386/libi386/biosdisk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/i386/libi386/biosdisk.c b/sys/boot/i386/libi386/biosdisk.c
index a54418f..f84c515 100644
--- a/sys/boot/i386/libi386/biosdisk.c
+++ b/sys/boot/i386/libi386/biosdisk.c
@@ -83,7 +83,7 @@ struct open_disk {
int od_cyl; /* BIOS geometry */
int od_hds;
int od_sec;
- int od_boff; /* block offset from beginning of BIOS disk */
+ daddr_t od_boff; /* block offset from beginning of BIOS disk */
int od_flags;
#define BD_MODEINT13 0x0000
#define BD_MODEEDD1 0x0001
OpenPOWER on IntegriCloud