From mboxrd@z Thu Jan 1 00:00:00 1970 From: sbabic at denx.de Date: Wed, 15 Jan 2020 13:46:45 +0100 (CET) Subject: [PATCH v2 01/21] spl: fix entry_point equal to load_addr In-Reply-To: <20200110144711.81938-2-giulio.benetti@benettiengineering.com> Message-ID: <20200115124645.F0CA4818CF@phobos.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 > At the moment entry_point is set to image_get_load(header) that sets it > to "load address" instead of "entry point", assuming entry_point is > equal to load_addr, but it's not true. Then load_addr is set to > "entry_point - header_size", but this is wrong too since load_addr is > not an entry point. > So use image_get_ep() for entry_point assignment and image_get_load() > for load_addr assignment. > Signed-off-by: Giulio Benetti Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================