Patrice Chotard a6651086a7 board_f.c: Ensure gd->new_bootstage alignment
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 <patrice.chotard@st.com>
Reviewed-by: Vikas MANOCHA <vikas.manocha@st.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@st.com>
Tested-by: Patrick Delaunay <patrick.delaunay@st.com>
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.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