Searched hist:"8 f60d99f44f3f75108f7cf707e8d1c8f6ef33be0" (Results 1 – 1 of 1) sorted by relevance
| /rk3399_ARM-atf/services/std_svc/spmd/ |
| H A D | spmd_main.c | 8f60d99f44f3f75108f7cf707e8d1c8f6ef33be0 Thu Feb 06 11:58:53 UTC 2025 Rakshit Goyal <rakshit.goyal@arm.com> fix(spmd): prevent SIMD context loss
When SPMD_SPM_AT_SEL2 is enabled, saving and restoring the SIMD context is not needed because the SPMC handles it. The function spmd_secure_interrupt_handler incorrectly restores the SWD SIMD context before entering the SPMC without saving the NWD SIMD context, leading to its loss. Furthermore, the SWD SIMD context is saved after returning from the SPMC which is unnecessary.
This commit prevents the restoration of the SWD SIMD context before SPMC entry and the saving of the SWD SIMD context after returning from the SPMC when SPMD_SPM_AT_SEL2 is enabled. This ensures the preservation of the NWD SIMD context.
Change-Id: I16a3e698e61da7019b3a670475e542d1690a5dd9 Signed-off-by: Rakshit Goyal <rakshit.goyal@arm.com>
|