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
ba2d7f92
Unverified
Commit
ba2d7f92
authored
Feb 18, 2019
by
Antonio Niño Díaz
Committed by
GitHub
Feb 18, 2019
Browse files
Merge pull request #1823 from antonio-nino-diaz-arm/an/spm-regs
SPM: Remove unnecessary register save
parents
37cdad2a
9efdbc2c
Changes
1
Hide whitespace changes
Inline
Side-by-side
services/std_svc/spm/sprt.c
View file @
ba2d7f92
...
...
@@ -178,14 +178,6 @@ static uintptr_t sprt_smc_handler(uint32_t smc_fid, u_register_t x1,
SMC_RET1
(
handle
,
SPRT_VERSION_COMPILED
);
case
SPRT_PUT_RESPONSE_AARCH64
:
/*
* Registers x1-x3 aren't saved by default to the context,
* but they are needed after spm_sp_synchronous_exit() because
* they hold return values.
*/
SMC_SET_GP
(
handle
,
CTX_GPREG_X1
,
x1
);
SMC_SET_GP
(
handle
,
CTX_GPREG_X2
,
x2
);
SMC_SET_GP
(
handle
,
CTX_GPREG_X3
,
x3
);
spm_sp_synchronous_exit
(
SPRT_PUT_RESPONSE_AARCH64
);
case
SPRT_YIELD_AARCH64
:
...
...
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