firmware: Fix source fdt alignment

When I tried to start opensbi with coreboot, I found that aligning to a 16-byte
boundary would make a copy error.

Corrected to align to an machine word length boundary.

Signed-off-by: Xiang Wang <wxjstz@126.com>
This commit is contained in:
Xiang Wang 2019-04-02 16:57:22 +08:00 committed by Anup Patel
parent 3fbe233a15
commit 09f976802b
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ _prev_arg1_override_done:
*/
beqz a1, _fdt_reloc_done
/* Mask values in a3 and a4 */
li a3, ~0xf
li a3, ~(__SIZEOF_POINTER__ - 1)
li a4, 0xff
/* t1 = destination FDT start address */
add s0, a0, zero