summaryrefslogtreecommitdiff
path: root/include/linux/kernel.h
diff options
context:
space:
mode:
authorPatrice Chotard <[email protected]>2020-03-10 10:15:02 +0100
committerTom Rini <[email protected]>2020-04-16 23:06:54 -0400
commita6651086a74f82f7b5c4455c47f579e90dd566fe (patch)
tree4577c34b863f1d20f654c8b2b784e929415695ea /include/linux/kernel.h
parent9d82cbd39a75f4388f3705efa99832b9376f3df5 (diff)
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 <[email protected]> Reviewed-by: Vikas MANOCHA <[email protected]> Reviewed-by: Patrick Delaunay <[email protected]> Tested-by: Patrick Delaunay <[email protected]> Signed-off-by: Patrick Delaunay <[email protected]>
Diffstat (limited to 'include/linux/kernel.h')
0 files changed, 0 insertions, 0 deletions