From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Sat, 5 Jan 2013 09:16:06 +0100 Subject: [U-Boot] [RFC PATCH 30/44] sandbox: image: Add support for booting images in sandbox In-Reply-To: <1357350734-13737-31-git-send-email-sjg@chromium.org> References: <1357350734-13737-1-git-send-email-sjg@chromium.org> <1357350734-13737-31-git-send-email-sjg@chromium.org> Message-ID: <201301050916.07115.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Simon Glass, > Much of the image code uses addresses as ulongs and pointers > interchangeably, casting between the two forms as needed. > > This doesn't work with sandbox, which has a U-Boot RAM buffer which is > separate from the host machine's memory. > > Adjust the cost so that translating from a U-Boot address to a pointer uses > map_sysmem(). This allows bootm to work correctly on sandbox. > > Note that there are no exhaustive tests for this code on sandbox, so it is > possible that some dark corners remain. > > Signed-off-by: Simon Glass Code looks reasonable overall Reviewed-by: Marek Vasut Best regards, Marek Vasut