From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Fri, 17 Apr 2020 17:08:51 -0400 Subject: [PATCH v4 4/4] board_f.c: Ensure 16 alignment of start_addr_sp and reserved memory In-Reply-To: <20200310091505.24862-5-patrick.delaunay@st.com> References: <20200310091505.24862-1-patrick.delaunay@st.com> <20200310091505.24862-5-patrick.delaunay@st.com> Message-ID: <20200417210851.GM4555@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:05AM +0100, Patrick Delaunay wrote: > Add a function reserve_stack_aligned() to reserved memory with 16 bits > alignment after the stack pointer (gd->start_addr_sp) and use this new > function in board_f.c to reserve all the memory area (malloc, board, gd, > fdt, bootstage, stacks). > > This 16 byte alignment is needed for cast on struct pointer > for the reserved memory, for example: > + x86_64 ABI: https://reviews.llvm.org/D30049: 16 bytes > + ARMv8 Instruction Set Overview: quad word, 16 bytes > > An other alignment value could be needed for other architecture. > > Signed-off-by: Patrick Delaunay > Acked-by: Stephen Warren 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: