arm-trusted-firmware/include/bl32/tsp/tsp_el1_context.h
Jayanth Dodderi Chidanand 7623e085cb feat(cm): test integrity of el1_ctx registers
* 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
2024-11-08 11:05:13 +00:00

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 */