diff options
Diffstat (limited to 'tests/runtime_services')
-rw-r--r-- | tests/runtime_services/standard_service/sdei/system_tests/sdei_entrypoint.S | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/tests/runtime_services/standard_service/sdei/system_tests/sdei_entrypoint.S b/tests/runtime_services/standard_service/sdei/system_tests/sdei_entrypoint.S index e152c1b..dc2c227 100644 --- a/tests/runtime_services/standard_service/sdei/system_tests/sdei_entrypoint.S +++ b/tests/runtime_services/standard_service/sdei/system_tests/sdei_entrypoint.S @@ -41,10 +41,9 @@ #ifdef AARCH64 func sdei_entrypoint - stp x29, x30, [sp, #-16]! - mov x29, sp + stp xzr, x30, [sp, #-16]! bl sdei_event_handler - ldp x29, x30, [sp],#16 + ldp xzr, x30, [sp],#16 mov_imm x0, SDEI_EVENT_COMPLETE mov x1, xzr smc #0 @@ -52,10 +51,7 @@ func sdei_entrypoint endfunc sdei_entrypoint func sdei_entrypoint_resume - stp x29, x30, [sp, #-16]! - /* Store xzr to keep the stack aligned to 16 bytes */ - stp x2, xzr, [sp, #-16]! - mov x29, sp + stp x2, x30, [sp, #-16]! /* Dispatch to C handler */ bl sdei_event_handler @@ -75,8 +71,7 @@ func sdei_entrypoint_resume sev /* Populate `x0` and `x1` to prepare for SMC call */ - ldp x1, xzr, [sp], #16 - ldp x29, x30, [sp], #16 + ldp x1, x30, [sp], #16 mov_imm x0, SDEI_EVENT_COMPLETE_AND_RESUME smc #0 endfunc sdei_entrypoint_resume |