diff options
author | Kathiravan Thirumoorthy <[email protected]> | 2023-09-25 13:59:22 +0530 |
---|---|---|
committer | Bjorn Andersson <[email protected]> | 2023-09-27 16:19:14 -0700 |
commit | 3337a6fea25370d3d244ec6bb38c71ee86fcf837 (patch) | |
tree | 0961e438a1cf83687755a0865b379ca3e031c715 /rust/helpers/helpers.c | |
parent | f1a1bc8775b26345aba2be278118999e7f661d3d (diff) |
firmware: qcom_scm: use 64-bit calling convention only when client is 64-bit
Per the "SMC calling convention specification", the 64-bit calling
convention can only be used when the client is 64-bit. Whereas the
32-bit calling convention can be used by either a 32-bit or a 64-bit
client.
Currently during SCM probe, irrespective of the client, 64-bit calling
convention is made, which is incorrect and may lead to the undefined
behaviour when the client is 32-bit. Let's fix it.
Cc: [email protected]
Fixes: 9a434cee773a ("firmware: qcom_scm: Dynamically support SMCCC and legacy conventions")
Reviewed-By: Elliot Berman <[email protected]>
Signed-off-by: Kathiravan Thirumoorthy <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Bjorn Andersson <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions