diff options
author | kientzle <kientzle@FreeBSD.org> | 2012-09-14 05:24:06 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2012-09-14 05:24:06 +0000 |
commit | 2bde8e86c150a1a47aaad7ccacdb85a902ae4235 (patch) | |
tree | 24c6a43cb1e74f0470968d0155555e6a8cb51b88 /sys/boot | |
parent | 3a1822a835e68de44bc6c76cba468c530f2b49a5 (diff) | |
download | FreeBSD-src-2bde8e86c150a1a47aaad7ccacdb85a902ae4235.zip FreeBSD-src-2bde8e86c150a1a47aaad7ccacdb85a902ae4235.tar.gz |
The MBR data is not necessarily aligned. This is a problem on ARM.
Diffstat (limited to 'sys/boot')
-rw-r--r-- | sys/boot/common/part.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/boot/common/part.c b/sys/boot/common/part.c index 9a30df8..31ea82a 100644 --- a/sys/boot/common/part.c +++ b/sys/boot/common/part.c @@ -661,8 +661,8 @@ ptable_open(void *dev, off_t sectors, uint16_t sectorsize, for (i = has_ext = 0; i < NDOSPART; i++) { if (dp[i].dp_typ == 0) continue; - start = le32toh(dp[i].dp_start); - end = le32toh(dp[i].dp_size); + start = le32dec(&(dp[i].dp_start)); + end = le32dec(&(dp[i].dp_size)); if (start == 0 || end == 0) continue; #if 0 /* Some BIOSes return an incorrect number of sectors */ |