fix(esp_tee): Reset crypto peripherals before the panic-induced reset

This commit is contained in:
harshal.patil
2026-05-29 18:44:06 +05:30
parent c5e03fd55c
commit dec9ce8263
7 changed files with 128 additions and 2 deletions

View File

@@ -112,6 +112,14 @@ void esp_tee_configure_region_protection(void);
*/
void esp_tee_configure_apm_protection(void);
/**
* @brief Reset the crypto peripherals to a clean state.
*
* Mirrors esp_system_reset_modules_on_exit() in the non-TEE path.
* Intended to be called from the TEE panic handler before a software reset.
*/
void esp_tee_soc_reset_crypto_peripherals(void);
/**
* @brief Switch to the REE app after TEE initialization is complete
*