summaryrefslogtreecommitdiff
path: root/firmware/fw_base.S
diff options
context:
space:
mode:
authorXiang Wang <wxjstz@126.com>2019-04-02 11:57:22 +0300
committerAnup Patel <anup@brainfault.org>2019-04-04 06:40:28 +0300
commit09f976802bcd291c80b8260746bdcf5b530179ae (patch)
tree4a756477d331f6e5955458c91f7f5c5cd2b6a1ce /firmware/fw_base.S
parent3fbe233a159798ee0360cc978aa1c9c3c51f6d88 (diff)
downloadopensbi-09f976802bcd291c80b8260746bdcf5b530179ae.tar.xz
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>
Diffstat (limited to 'firmware/fw_base.S')
-rw-r--r--firmware/fw_base.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/fw_base.S b/firmware/fw_base.S
index aed0917..7897314 100644
--- a/firmware/fw_base.S
+++ b/firmware/fw_base.S
@@ -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