Patrick Delaunay 65c141ebbd board_f.c: Ensure 16 alignment of start_addr_sp and reserved memory
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 <patrick.delaunay@st.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
2020-04-16 23:06:54 -04:00
..
2020-04-07 17:13:35 -04:00
2020-02-05 19:33:46 -07:00
2019-11-07 18:01:13 -05:00
2020-02-13 10:10:50 -05:00
2020-01-07 14:37:50 +01:00
2020-02-05 19:33:46 -07:00
2020-01-24 23:06:47 +05:30
2019-08-11 16:43:41 -04:00
2020-04-07 17:13:35 -04:00
2020-04-07 17:13:35 -04:00
2020-04-16 08:07:58 -06:00
2016-05-02 18:37:09 -04:00
2020-04-16 08:07:58 -06:00
2020-04-16 08:07:58 -06:00