Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
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
66306814
Commit
66306814
authored
4 years ago
by
Olivier Deprez
Committed by
TrustedFirmware Code Review
4 years ago
Browse files
Options
Download
Plain Diff
Merge "spmd: ensure SIMD context is saved/restored on SPMC entry/exit" into integration
parents
30513571
bedb13f5
master
v2.5
v2.5-rc1
v2.5-rc0
arm_cca_v0.2
arm_cca_v0.1
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
services/std_svc/spmd/spmd_main.c
+7
-0
services/std_svc/spmd/spmd_main.c
with
7 additions
and
0 deletions
+7
-0
services/std_svc/spmd/spmd_main.c
View file @
66306814
...
...
@@ -109,6 +109,7 @@ uint64_t spmd_spm_core_sync_entry(spmd_spm_core_context_t *spmc_ctx)
/* Restore the context assigned above */
cm_el1_sysregs_context_restore
(
SECURE
);
#if SPMD_SPM_AT_SEL2
cm_el2_sysregs_context_restore
(
SECURE
);
#endif
...
...
@@ -348,12 +349,18 @@ static uint64_t spmd_smc_forward(uint32_t smc_fid,
/* Save incoming security state */
cm_el1_sysregs_context_save
(
secure_state_in
);
#if CTX_INCLUDE_FPREGS
fpregs_context_save
(
get_fpregs_ctx
(
cm_get_context
(
secure_state_in
)));
#endif
#if SPMD_SPM_AT_SEL2
cm_el2_sysregs_context_save
(
secure_state_in
);
#endif
/* Restore outgoing security state */
cm_el1_sysregs_context_restore
(
secure_state_out
);
#if CTX_INCLUDE_FPREGS
fpregs_context_restore
(
get_fpregs_ctx
(
cm_get_context
(
secure_state_out
)));
#endif
#if SPMD_SPM_AT_SEL2
cm_el2_sysregs_context_restore
(
secure_state_out
);
#endif
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help