From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Fri, 17 Apr 2020 17:08:30 -0400 Subject: [PATCH v4 1/4] board_f.c: Ensure gd->new_bootstage alignment In-Reply-To: <20200310091505.24862-2-patrick.delaunay@st.com> References: <20200310091505.24862-1-patrick.delaunay@st.com> <20200310091505.24862-2-patrick.delaunay@st.com> Message-ID: <20200417210830.GJ4555@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 Tue, Mar 10, 2020 at 10:15:02AM +0100, Patrick Delaunay wrote: > From: Patrice Chotard > > In reserve_bootstage(), in case size is odd, gd->new_bootstage > is not aligned. In bootstage_relocate(), the platform hangs when > getting access to data->record[i].name. > To avoid this issue, make gd->new_bootstage 16 byte aligned. > > To ensure that new_bootstage is 16 byte aligned (at least needed for > x86_64 and ARMv8) and new_bootstage starts down to get enough space, > ALIGN_DOWN macro is used. > > Fixes: ac9cd4805c8b ("bootstage: Correct relocation algorithm") > > Signed-off-by: Patrice Chotard > Reviewed-by: Vikas MANOCHA > Reviewed-by: Patrick Delaunay > Tested-by: Patrick Delaunay > Signed-off-by: Patrick Delaunay Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: