summaryrefslogtreecommitdiff
path: root/bl31/aarch64
diff options
context:
space:
mode:
authorJuan Castillo <juan.castillo@arm.com>2014-06-25 17:26:36 +0100
committerJuan Castillo <juan.castillo@arm.com>2014-07-10 11:41:44 +0100
commit0f21c547fe7693d9759616dbdc747fe3cca79a70 (patch)
treeaf5a237550d4295614da075a7f9b6bf9197a9e57 /bl31/aarch64
parentdac1235a94f4633b838598fb40e03e350e89f089 (diff)
Allow FP register context to be optional at build time
CTX_INCLUDE_FPREGS make variable allows us to include or exclude FP registers from context structure, in case FP is not used by TSPD. Fixes ARM-software/tf-issues#194 Change-Id: Iee41af382d691340c7ae21830ad1bbf95dad1f4b
Diffstat (limited to 'bl31/aarch64')
-rw-r--r--bl31/aarch64/context.S2
1 files changed, 2 insertions, 0 deletions
diff --git a/bl31/aarch64/context.S b/bl31/aarch64/context.S
index 6667419a..26982157 100644
--- a/bl31/aarch64/context.S
+++ b/bl31/aarch64/context.S
@@ -293,6 +293,7 @@ func el1_sysregs_context_restore
* TODO: Revisit when VFP is used in secure world
* -----------------------------------------------------
*/
+#if CTX_INCLUDE_FPREGS
.global fpregs_context_save
func fpregs_context_save
stp q0, q1, [x0, #CTX_FP_Q0]
@@ -368,3 +369,4 @@ func fpregs_context_restore
*/
ret
+#endif /* CTX_INCLUDE_FPREGS */