From 18fa43f753b79cfc3cc5426a3ef50b04efbf6206 Mon Sep 17 00:00:00 2001 From: Nishant Sharma Date: Tue, 19 Apr 2022 10:23:59 +0100 Subject: [PATCH] feat(sgi): enable fpregs context save and restore This is required to prevent Nwd context corruption during StMM execution. Standalone MM uses OpenSSL for secure boot, which uses FP registers for floating point calculations. Signed-off-by: Nishant Sharma Change-Id: I6ed11d4fa5d64c3089a24b66fd048a841c480792 --- plat/arm/css/sgi/sgi-common.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plat/arm/css/sgi/sgi-common.mk b/plat/arm/css/sgi/sgi-common.mk index f56fe3576..76c8025ba 100644 --- a/plat/arm/css/sgi/sgi-common.mk +++ b/plat/arm/css/sgi/sgi-common.mk @@ -23,6 +23,8 @@ CSS_SGI_PLATFORM_VARIANT := 0 # Do not enable SVE ENABLE_SVE_FOR_NS := 0 +CTX_INCLUDE_FPREGS := 1 + INTERCONNECT_SOURCES := ${CSS_ENT_BASE}/sgi_interconnect.c PLAT_INCLUDES += -I${CSS_ENT_BASE}/include