firmware: Return real DTB address when FW_xyz_FDT_ADDR is not defined

Function fw_next_arg1 in firmware/fw_jump.S:59 and
firmware/fw_payload.S:63 should return real dtb
address(if specified in a1) in a0, in case we don't
want to specify FW_xyz_FDT_ADDR when compiling.

Signed-off-by: Liu Yibin <yibin_liu@c-sky.com>
Reviewed-by: Anup Patel <anup.patel@wdc.com>
This commit is contained in:
Liu Yibin 2019-12-26 17:38:55 +08:00 committed by Anup Patel
parent 86a31f5437
commit c7d1b12199
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ fw_next_arg1:
#ifdef FW_JUMP_FDT_ADDR
li a0, FW_JUMP_FDT_ADDR
#else
add a0, zero, zero
add a0, a1, zero
#endif
ret

View File

@ -60,7 +60,7 @@ fw_next_arg1:
#ifdef FW_PAYLOAD_FDT_ADDR
li a0, FW_PAYLOAD_FDT_ADDR
#else
add a0, zero, zero
add a0, a1, zero
#endif
ret