diff --git a/core/arch/riscv/kernel/entry.S b/core/arch/riscv/kernel/entry.S index 4dac1573223..4e451e06643 100644 --- a/core/arch/riscv/kernel/entry.S +++ b/core/arch/riscv/kernel/entry.S @@ -12,6 +12,9 @@ #include #include #include +#include +#include +#include .section .data .balign 4 @@ -219,7 +222,10 @@ UNWIND( .cantunwind) wait_secondary jal thread_clr_boot_thread - j mu_service + + li a0, TEEABI_OPTEED_RETURN_ENTRY_DONE + la a1, thread_vector_table + j thread_return_to_ree END_FUNC reset_primary LOCAL_FUNC reset_secondary , : , .identity_map