firmware: Remove the unhelpful alignment codes before fdt relocation
authorBin Meng <bmeng.cn@gmail.com>
Sat, 10 Jul 2021 14:28:20 +0000 (22:28 +0800)
committerAnup Patel <anup@brainfault.org>
Sat, 17 Jul 2021 11:43:43 +0000 (17:13 +0530)
commit8a1475b5a1325547af7f428d4aed063d7a4007c7
treee5283cd4ebb7ae4ac7de8fb03e696caf2efb8271
parentf3a8f603a702b10f13f0fad7c0c815b21fb2384a
firmware: Remove the unhelpful alignment codes before fdt relocation

If the device tree is at an address that is not __SIZEOF_POINTER__
aligned, the fdt relocation code tries to align both source and
destination address to __SIZEOF_POINTER__ before the memory copy.
But such alignment can lead to unexpected results if either source
or destination address is not aligned.

In fact libfdt requires that the device tree must be at an 8-byte
aligned address. Hence remove the unhelpful alignment codes.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Anup Patel <anup.patel@wdc.com>
firmware/fw_base.S