blob: 25056da3f8e47287d0a1a504fbbb3d4f2912235f [file] [log] [blame]
Imre Kise6d73412021-10-18 14:01:47 +02001// SPDX-License-Identifier: BSD-3-Clause
2/*
3 * Copyright (c) 2021, Arm Limited and Contributors. All rights reserved.
4 */
5
6#include <compiler.h>
7#include "optee_sp_internal_api.h"
8#include "optee_sp_user_defines.h"
9
10#ifndef OPTEE_SP_UUID
11#error "OPTEE_SP_UUID is not defined in SP"
12#endif
13
14#ifndef OPTEE_SP_STACK_SIZE
15#error "OPTEE_SP_STACK_SIZE is not defined in SP"
16#endif
17
18#ifndef OPTEE_SP_FLAGS
19#error "OPTEE_SP_FLAGS is not defined in SP"
20#endif
21
22const struct optee_sp_head sp_head __section(".sp_head") = {
23 .uuid = OPTEE_SP_UUID,
24 .stack_size = OPTEE_SP_STACK_SIZE,
25 .flags = OPTEE_SP_FLAGS,
26 .reserved = UINT64_MAX
27};