aboutsummaryrefslogtreecommitdiff
path: root/bl31
diff options
context:
space:
mode:
authorSoby Mathew <soby.mathew@arm.com>2015-12-03 09:42:50 +0000
committerSoby Mathew <soby.mathew@arm.com>2015-12-09 10:37:53 +0000
commit817ac8d19b6fa897997b58aec8cc98f448564594 (patch)
treebf28a0958aaa4b1a07995f8b2a5c4c92bfda5c98 /bl31
parentf3974ea5b17b0ec88091a8a8c59e56da0fe507f0 (diff)
downloadtrusted-firmware-a-817ac8d19b6fa897997b58aec8cc98f448564594.tar.gz
Fix issue in Floating point register restore
The `fpregs_context_restore()` function used to restore the floating point regsiter context had a typo error wherein it was doing `str` instead of `ldr` for a register. This issue remained undetected becuase none of the ARM Standard development platforms save and restore the floating point register context when a context switch is done. This patch corrects the issue. Change-Id: Id178e0ba254a5e0a4a844f54b39d71dc34e0f6ea
Diffstat (limited to 'bl31')
-rw-r--r--bl31/aarch64/context.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/bl31/aarch64/context.S b/bl31/aarch64/context.S
index 70a1e5d677..a72879be25 100644
--- a/bl31/aarch64/context.S
+++ b/bl31/aarch64/context.S
@@ -291,7 +291,7 @@ func fpregs_context_restore
ldr x9, [x0, #CTX_FP_FPSR]
msr fpsr, x9
- str x10, [x0, #CTX_FP_FPCR]
+ ldr x10, [x0, #CTX_FP_FPCR]
msr fpcr, x10
/*