mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-18 02:24:18 +00:00

This adds the ability to load the OP-TEE image via an SMC called from non-secure userspace rather than loading it during boot. This should only be utilized on platforms that can ensure security is maintained up until the point the SMC is invoked as it breaks the normal barrier between the secure and non-secure world. Signed-off-by: Jeffrey Kardatzke <jkardatzke@google.com> Change-Id: I21cfa9699617c493fa4190f01d1cbb714e7449cc
23 lines
632 B
C
23 lines
632 B
C
/*
|
|
* Copyright (c) 2014-2023, ARM Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
#ifndef TEESMC_OPTEED_MACROS_H
|
|
#define TEESMC_OPTEED_MACROS_H
|
|
|
|
#include <common/runtime_svc.h>
|
|
|
|
#define TEESMC_OPTEED_RV(func_num) \
|
|
((SMC_TYPE_FAST << FUNCID_TYPE_SHIFT) | \
|
|
((SMC_32) << FUNCID_CC_SHIFT) | \
|
|
(62 << FUNCID_OEN_SHIFT) | \
|
|
((func_num) & FUNCID_NUM_MASK))
|
|
|
|
#define NSSMC_OPTEED_CALL(func_num) \
|
|
((SMC_TYPE_FAST << FUNCID_TYPE_SHIFT) | \
|
|
((SMC_32) << FUNCID_CC_SHIFT) | \
|
|
(50 << FUNCID_OEN_SHIFT) | \
|
|
((func_num) & FUNCID_NUM_MASK))
|
|
|
|
#endif /* TEESMC_OPTEED_MACROS_H */
|