blob: 683b37c37749c324181d14811d519bb15de80887 [file] [log] [blame]
/*
* Copyright (c) 2020-2021, Arm Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "ffa_internal_api.h"
#include "optee_sp_internal_api.h"
#include "sp_api.h"
void __noreturn optee_sp_entry(uintptr_t a0, uintptr_t a1, uintptr_t a2,
uintptr_t a3)
{
(void)a1;
(void)a2;
(void)a3;
sp_main((struct ffa_init_info *)a0);
}
void optee_sp_log_puts(const char *str)
{
struct ffa_params resp;
ffa_svc(0xdeadbeef, (uintptr_t)str, 0, 0, 0, 0, 0, 0, &resp);
}
void __noreturn optee_sp_panic(void)
{
while (1)
;
}