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

* This patch adds support to tsp (BL32) Image, to exercise EL1_context registers at S-EL1. * Adds a SMC function ID "MODIFY_EL1_CTX" to handle EL1_CTX registers at S-EL1 and overwrite them. Signed-off-by: Jayanth Dodderi Chidanand <jayanthdodderi.chidanand@arm.com> Change-Id: Id4f2b3b748f7bc9e6c9d72a2f03d50aefbfb61cb
16 lines
411 B
C
16 lines
411 B
C
/*
|
|
* Copyright (c) 2024, Arm Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef TSP_EL1_CONTEXT_H
|
|
#define TSP_EL1_CONTEXT_H
|
|
|
|
#define TSP_CORRUPT_EL1_REGS 1
|
|
#define TSP_RESTORE_EL1_REGS 0
|
|
|
|
/* Public helper function to handle EL1 ctx registers at S-EL1(TSP) */
|
|
void modify_el1_ctx_regs(const bool modify_option);
|
|
|
|
#endif /* TSP_EL1_CONTEXT_H */
|