common: spl: jump next process depend on entry_point_os
The spl can bring up uboot & kernel, and their entry points are diffirent,
so pass their entry points by entry_point_os.
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: I625d135d219cfbfb620ff1e3d0de5278143f4079
(cherry picked from commit 78628ac9a9)
This commit is contained in:
parent
1cb393f1c8
commit
605bf846bd
|
|
@ -556,7 +556,8 @@ void board_init_r(gd_t *dummy1, ulong dummy2)
|
|||
#if CONFIG_IS_ENABLED(OPTEE)
|
||||
case IH_OS_OP_TEE:
|
||||
debug("Jumping to U-Boot via OP-TEE\n");
|
||||
spl_optee_entry(NULL, NULL, (void *)spl_image.fdt_addr,
|
||||
spl_optee_entry(NULL, (void *)spl_image.entry_point_os,
|
||||
(void *)spl_image.fdt_addr,
|
||||
(void *)spl_image.entry_point);
|
||||
break;
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@
|
|||
#include <asm/assembler.h>
|
||||
|
||||
ENTRY(spl_optee_entry)
|
||||
ldr lr, =CONFIG_SYS_TEXT_BASE
|
||||
ldr r1, =CONFIG_SYS_TEXT_BASE
|
||||
mov lr, r1
|
||||
mov pc, r3
|
||||
ENDPROC(spl_optee_entry)
|
||||
|
|
|
|||
Loading…
Reference in New Issue