ArmPkg/ArmSvcLib: Return x4-x7 in output parameters
The Arm SMC calling convention standard v1.2 allows 8 input and output parameter registers. The FF-A specification relies on this communication. This patch extends the number of output registers returned by ArmCallSvc() to match this convention. Signed-off-by: Achin Gupta <achin.gupta@arm.com> Reviewed-by: Sami Mujawar <sami.mujawar@arm.com> Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
This commit is contained in:
committed by
mergify[bot]
parent
37ef4bb1a7
commit
af0c597e98
@@ -33,9 +33,11 @@ ASM_PFX(ArmCallSvc):
|
||||
ldr x9, [sp, #16]
|
||||
|
||||
// Store the SVC returned values into the ARM_SVC_ARGS structure.
|
||||
// A SVC call can return up to 4 values - we do not need to store back x4-x7.
|
||||
// A SVC call can return up to 8 values
|
||||
stp x0, x1, [x9, #0]
|
||||
stp x2, x3, [x9, #16]
|
||||
stp x4, x5, [x9, #32]
|
||||
stp x6, x7, [x9, #48]
|
||||
|
||||
mov x0, x9
|
||||
|
||||
|
Reference in New Issue
Block a user