aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSandrine Bailleux <sandrine.bailleux@arm.com>2018-11-16 15:36:08 +0100
committerSandrine Bailleux <sandrine.bailleux@arm.com>2018-11-27 09:46:43 +0000
commit13d99f95ae68104f4e97a58f6887c75863b4f502 (patch)
tree64d576b0cce6a99753f8c0a0cf27e286e0b52d59 /lib
parent1454f50345890804c7f5f153e9730b239794f93b (diff)
downloadtf-a-tests-13d99f95ae68104f4e97a58f6887c75863b4f502.tar.gz
Fix type of SMC function ID
The SMC function identifier is always a 32-bit integer, regardless of the caller's execution state and of the SMC calling convention in use. Change-Id: I8d4f7b9efcea3f00ac2ff0a397ca0d8ab824eecb Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/smc/aarch64/asm_smc.S16
-rw-r--r--lib/smc/aarch64/smc.c16
2 files changed, 16 insertions, 16 deletions
diff --git a/lib/smc/aarch64/asm_smc.S b/lib/smc/aarch64/asm_smc.S
index 2b305b9d..48a80a3f 100644
--- a/lib/smc/aarch64/asm_smc.S
+++ b/lib/smc/aarch64/asm_smc.S
@@ -12,14 +12,14 @@
/* ---------------------------------------------------------------------------
- * smc_ret_values asm_tftf_smc64(uint64_t arg0,
- * uint64_t arg1,
- * uint64_t arg2,
- * uint64_t arg3,
- * uint64_t arg4,
- * uint64_t arg5,
- * uint64_t arg6,
- * uint64_t arg7);
+ * smc_ret_values asm_tftf_smc64(uint32_t arg0,
+ * u_register_t arg1,
+ * u_register_t arg2,
+ * u_register_t arg3,
+ * u_register_t arg4,
+ * u_register_t arg5,
+ * u_register_t arg6,
+ * u_register_t arg7);
* ---------------------------------------------------------------------------
*/
func asm_tftf_smc64
diff --git a/lib/smc/aarch64/smc.c b/lib/smc/aarch64/smc.c
index 06b841c9..cbe4bb9f 100644
--- a/lib/smc/aarch64/smc.c
+++ b/lib/smc/aarch64/smc.c
@@ -7,14 +7,14 @@
#include <stdint.h>
#include <tftf.h>
-smc_ret_values asm_tftf_smc64(u_register_t arg0,
- u_register_t arg1,
- u_register_t arg2,
- u_register_t arg3,
- u_register_t arg4,
- u_register_t arg5,
- u_register_t arg6,
- u_register_t arg7);
+smc_ret_values asm_tftf_smc64(uint32_t arg0,
+ u_register_t arg1,
+ u_register_t arg2,
+ u_register_t arg3,
+ u_register_t arg4,
+ u_register_t arg5,
+ u_register_t arg6,
+ u_register_t arg7);
smc_ret_values tftf_smc(const smc_args *args)
{