diff options
author | Soby Mathew <soby.mathew@arm.com> | 2022-03-22 16:19:39 +0000 |
---|---|---|
committer | Soby Mathew <soby.mathew@arm.com> | 2022-03-25 17:12:26 +0000 |
commit | 0f9159b7ebb7e784a8ed998869ff21095fa105b1 (patch) | |
tree | 3e72e2d4d6742e78a2b451144f44c31c953f2c2d /include/plat | |
parent | 319fb08438d10d60eb8bd013d052a55b9472c548 (diff) | |
download | arm-trusted-firmware-0f9159b7ebb7e784a8ed998869ff21095fa105b1.tar.gz |
feat(rme): add dummy platform token to RMMD
Add a dummy platform token to RMMD and return it on request. The
platform token is requested with an SMC with the following parameters:
* Fid (0xC40001B3).
* Platform token PA (the platform token is copied at this address by
the monitor). The challenge object needs to be passed by
the caller in this buffer.
* Platform token len.
* Challenge object len.
When calling the SMC, the platform token buffer received by EL3 contains
the challenge object. It is not used on the FVP and is only printed to
the log.
Signed-off-by: Mate Toth-Pal <mate.toth-pal@arm.com>
Signed-off-by: Subhasish Ghosh <subhasish.ghosh@arm.com>
Change-Id: I8b2f1d54426c04e76d7a3baa6b0fbc40b0116348
Diffstat (limited to 'include/plat')
-rw-r--r-- | include/plat/common/platform.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/plat/common/platform.h b/include/plat/common/platform.h index 509fd581d..9deb33dfd 100644 --- a/include/plat/common/platform.h +++ b/include/plat/common/platform.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013-2021, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2013-2022, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -303,6 +303,11 @@ plat_local_state_t plat_get_target_pwr_state(unsigned int lvl, unsigned int ncpu); /******************************************************************************* + * Mandatory BL31 functions when ENABLE_RME=1 + ******************************************************************************/ +int plat_get_cca_attest_token(uintptr_t buf, size_t *len, + uintptr_t hash, size_t hash_size); +/******************************************************************************* * Optional BL31 functions (may be overridden) ******************************************************************************/ void bl31_plat_enable_mmu(uint32_t flags); |