Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
e268ea27
Commit
e268ea27
authored
Aug 19, 2020
by
Manish Pandey
Committed by
TrustedFirmware Code Review
Aug 19, 2020
Browse files
Merge "SPM: Change condition on saving/restoring EL2 registers" into integration
parents
572dea85
6b704da3
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/el3_runtime/aarch64/context_mgmt.c
View file @
e268ea27
...
...
@@ -585,7 +585,7 @@ void cm_el2_sysregs_context_save(uint32_t security_state)
* S-EL2 context if S-EL2 is enabled.
*/
if
((
security_state
==
NON_SECURE
)
||
((
scr_el3
&
SCR_EEL2_BIT
)
!=
0U
))
{
((
security_state
==
SECURE
)
&&
((
scr_el3
&
SCR_EEL2_BIT
)
!=
0U
))
)
{
cpu_context_t
*
ctx
;
ctx
=
cm_get_context
(
security_state
);
...
...
@@ -607,7 +607,7 @@ void cm_el2_sysregs_context_restore(uint32_t security_state)
* S-EL2 context if S-EL2 is enabled.
*/
if
((
security_state
==
NON_SECURE
)
||
((
scr_el3
&
SCR_EEL2_BIT
)
!=
0U
))
{
((
security_state
==
SECURE
)
&&
((
scr_el3
&
SCR_EEL2_BIT
)
!=
0U
))
)
{
cpu_context_t
*
ctx
;
ctx
=
cm_get_context
(
security_state
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment