]> git.baikalelectronics.ru Git - arm-tf.git/commit
feat(spm_mm): add support to save and restore fp regs
authorNishant Sharma <nishant.sharma@arm.com>
Tue, 19 Apr 2022 09:16:48 +0000 (10:16 +0100)
committerNishant Sharma <nishant.sharma@arm.com>
Wed, 11 May 2022 16:18:21 +0000 (17:18 +0100)
commit15dd6f19da8ee4b20ba525e0a742d0df9e46e071
tree2a34862ea11207df612b1d76b692acb2dfcb828a
parentc3bdd3d3cf0f9cdf3be117e39386492e645a1bb5
feat(spm_mm): add support to save and restore fp regs

Add the support to save Nwd's floating point registers before switching
to SEL0 and then restore it after coming out of it. Emit a warning
message if SPM_MM is built with CTX_INCLUDE_FPREGS == 0

There is no need to save FP registers of SEL0 because secure partitions
run to completion.

This change is used to prevent context corruption if secure partition
enabled and Nwd decide to use floating point registers.

Signed-off-by: Nishant Sharma <nishant.sharma@arm.com>
Change-Id: I1eea16ea2311a4f00a806ea72c118752821b9abb
services/std_svc/spm/spm_mm/spm_mm.mk
services/std_svc/spm/spm_mm/spm_mm_main.c