From: Tom Rini Date: Fri, 21 Feb 2014 14:57:59 -0500 Subject: [U-Boot] [U-Boot, v3] common: Remove invalid endianess conversion In-Reply-To: <1391884065-8461-1-git-send-email-ceggers@gmx.de> References: <1391884065-8461-1-git-send-email-ceggers@gmx.de> Message-ID: <20140221195759.GA16805@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sat, Feb 08, 2014 at 07:27:45PM +0100, Christian Eggers wrote: > do_bootm_standanlone() calls ntohl(images->ep) which is wrong because > endianess conversion has already been done: > > do_bootm() > \-do_bootm_states() > +-bootm_find_os() > | \-images.ep = image_get_ep(); > | \-uimage_to_cpu(hdr->ih_ep); > \-boot_selected_os() > \-do_bootm_standanlone() > > Without this conversion the code works correctly at least on AT91SAM9G45. > On big endian systems there should be no difference after applying this > patch because uimage_to_cpu(x) and ntohl(x) both expand to 'x'. > > Signed-off-by: Christian Eggers Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: