summaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
authorAntonio Niño Díaz <antonio.ninodiaz@arm.com>2019-02-18 10:52:16 +0000
committerGitHub <noreply@github.com>2019-02-18 10:52:16 +0000
commitba2d7f927ee32b342e3bcdbff30eb371928476db (patch)
tree011d33693804b70db8e69331d8585cfa048b7b19 /services
parent37cdad2a7619150fd3d5127c014eeb030739f5b1 (diff)
parent9efdbc2cd894e99680c191a3c8e4a868cec12282 (diff)
Merge pull request #1823 from antonio-nino-diaz-arm/an/spm-regs
SPM: Remove unnecessary register save
Diffstat (limited to 'services')
-rw-r--r--services/std_svc/spm/sprt.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/services/std_svc/spm/sprt.c b/services/std_svc/spm/sprt.c
index 8aa2a88a..20ad2afb 100644
--- a/services/std_svc/spm/sprt.c
+++ b/services/std_svc/spm/sprt.c
@@ -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: