forked from Mirrors/opensbi
blob: Rename FW_xyz_FDT_OFFSET to FW_xyz_FDT_ADDR
Instead of placing FDT (passed by previous booting stage) at a location relative to next address we should have absolute location of placing FDT so that we more freedom of placing FDT. This will be particularly useful for platforms/boards with very less RAM (such as Kendryte board). Due to above motivation, we rename FW_xyz_FDT_OFFSET options to FW_xyz_FDT_ADDR options and use FW_xyz_FDT_ADDR options as absolute address for placing FDT. Signed-off-by: Anup Patel <anup.patel@wdc.com>
This commit is contained in:
@@ -14,12 +14,9 @@
|
||||
.global fw_next_arg1
|
||||
fw_next_arg1:
|
||||
/* We return FDT destination address in 'a0' */
|
||||
#ifdef FW_JUMP_FDT_OFFSET
|
||||
#ifdef FW_JUMP_FDT_ADDR
|
||||
/* a0 = destination FDT start address */
|
||||
la a0, _jump_addr
|
||||
REG_L a0, (a0)
|
||||
li a1, FW_JUMP_FDT_OFFSET
|
||||
add a0, a0, a1
|
||||
li a0, FW_JUMP_FDT_ADDR
|
||||
#else
|
||||
add a0, zero, zero
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user