From owner-svn-src-all@FreeBSD.ORG Fri Sep 14 05:24:06 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D3F0F1065670; Fri, 14 Sep 2012 05:24:06 +0000 (UTC) (envelope-from kientzle@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id BE9B58FC0C; Fri, 14 Sep 2012 05:24:06 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q8E5O6xt050350; Fri, 14 Sep 2012 05:24:06 GMT (envelope-from kientzle@svn.freebsd.org) Received: (from kientzle@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q8E5O6Ev050348; Fri, 14 Sep 2012 05:24:06 GMT (envelope-from kientzle@svn.freebsd.org) Message-Id: <201209140524.q8E5O6Ev050348@svn.freebsd.org> From: Tim Kientzle Date: Fri, 14 Sep 2012 05:24:06 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r240481 - head/sys/boot/common X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Sep 2012 05:24:06 -0000 Author: kientzle Date: Fri Sep 14 05:24:06 2012 New Revision: 240481 URL: http://svn.freebsd.org/changeset/base/240481 Log: The MBR data is not necessarily aligned. This is a problem on ARM. Modified: head/sys/boot/common/part.c Modified: head/sys/boot/common/part.c ============================================================================== --- head/sys/boot/common/part.c Fri Sep 14 01:23:28 2012 (r240480) +++ head/sys/boot/common/part.c Fri Sep 14 05:24:06 2012 (r240481) @@ -661,8 +661,8 @@ ptable_open(void *dev, off_t sectors, ui 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 */