Rename SMC first argument
'fid' (short for 'function ID') makes for a more explicit name.
Change-Id: I41d90c39979162142b0377a68f4be90dc31de253
Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>
diff --git a/tftf/tests/performance_tests/smc_latencies.c b/tftf/tests/performance_tests/smc_latencies.c
index fe22679..49733cf 100644
--- a/tftf/tests/performance_tests/smc_latencies.c
+++ b/tftf/tests/performance_tests/smc_latencies.c
@@ -143,7 +143,7 @@
/* Check if SMCCC version is at least v1.1 */
expected_ver = MAKE_SMCCC_VERSION(1, 1);
memset(&args, 0, sizeof(args));
- args.arg0 = SMCCC_VERSION;
+ args.fid = SMCCC_VERSION;
ret = tftf_smc(&args);
if ((int32_t)ret.ret0 < expected_ver) {
printf("Unexpected SMCCC version: 0x%x\n",
@@ -153,7 +153,7 @@
/* Check if SMCCC_ARCH_WORKAROUND_1 is implemented */
memset(&args, 0, sizeof(args));
- args.arg0 = SMCCC_ARCH_FEATURES;
+ args.fid = SMCCC_ARCH_FEATURES;
args.arg1 = SMCCC_ARCH_WORKAROUND_1;
ret = tftf_smc(&args);
if ((int)ret.ret0 == -1) {
@@ -162,7 +162,7 @@
}
memset(&args, 0, sizeof(args));
- args.arg0 = SMCCC_ARCH_WORKAROUND_1;
+ args.fid = SMCCC_ARCH_WORKAROUND_1;
test_measure_smc_latency(&args, &latency);
tftf_testcase_printf(
diff --git a/tftf/tests/runtime_services/arm_arch_svc/smccc_arch_workaround_1.c b/tftf/tests/runtime_services/arm_arch_svc/smccc_arch_workaround_1.c
index 4a45ad4..90a43f3 100644
--- a/tftf/tests/runtime_services/arm_arch_svc/smccc_arch_workaround_1.c
+++ b/tftf/tests/runtime_services/arm_arch_svc/smccc_arch_workaround_1.c
@@ -60,7 +60,7 @@
/* Check if SMCCC version is at least v1.1 */
expected_ver = MAKE_SMCCC_VERSION(1, 1);
memset(&args, 0, sizeof(args));
- args.arg0 = SMCCC_VERSION;
+ args.fid = SMCCC_VERSION;
ret = tftf_smc(&args);
if ((int32_t)ret.ret0 < expected_ver) {
tftf_testcase_printf("Unexpected SMCCC version: 0x%x\n",
@@ -70,7 +70,7 @@
/* Check if SMCCC_ARCH_WORKAROUND_1 is required or not */
memset(&args, 0, sizeof(args));
- args.arg0 = SMCCC_ARCH_FEATURES;
+ args.fid = SMCCC_ARCH_FEATURES;
args.arg1 = SMCCC_ARCH_WORKAROUND_1;
ret = tftf_smc(&args);
if ((int)ret.ret0 == -1) {
@@ -104,7 +104,7 @@
/* Invoke the workaround to make sure nothing nasty happens */
memset(&args, 0, sizeof(args));
- args.arg0 = SMCCC_ARCH_WORKAROUND_1;
+ args.fid = SMCCC_ARCH_WORKAROUND_1;
tftf_smc(&args);
return TEST_RESULT_SUCCESS;
}
diff --git a/tftf/tests/runtime_services/arm_arch_svc/smccc_arch_workaround_2.c b/tftf/tests/runtime_services/arm_arch_svc/smccc_arch_workaround_2.c
index dd0542c..a090874 100644
--- a/tftf/tests/runtime_services/arm_arch_svc/smccc_arch_workaround_2.c
+++ b/tftf/tests/runtime_services/arm_arch_svc/smccc_arch_workaround_2.c
@@ -43,7 +43,7 @@
/* Check if SMCCC version is at least v1.1 */
expected_ver = MAKE_SMCCC_VERSION(1, 1);
memset(&args, 0, sizeof(args));
- args.arg0 = SMCCC_VERSION;
+ args.fid = SMCCC_VERSION;
ret = tftf_smc(&args);
if ((int32_t)ret.ret0 < expected_ver) {
tftf_testcase_printf("Unexpected SMCCC version: 0x%x\n",
@@ -53,7 +53,7 @@
/* Check if SMCCC_ARCH_WORKAROUND_2 is required or not */
memset(&args, 0, sizeof(args));
- args.arg0 = SMCCC_ARCH_FEATURES;
+ args.fid = SMCCC_ARCH_FEATURES;
args.arg1 = SMCCC_ARCH_WORKAROUND_2;
ret = tftf_smc(&args);
if ((int)ret.ret0 == -1) {
@@ -87,7 +87,7 @@
/* Invoke the workaround to make sure nothing nasty happens */
memset(&args, 0, sizeof(args));
- args.arg0 = SMCCC_ARCH_WORKAROUND_2;
+ args.fid = SMCCC_ARCH_WORKAROUND_2;
tftf_smc(&args);
return TEST_RESULT_SUCCESS;
}
diff --git a/tftf/tests/runtime_services/sip_service/test_exec_state_switch.c b/tftf/tests/runtime_services/sip_service/test_exec_state_switch.c
index 120a99e..713c819 100644
--- a/tftf/tests/runtime_services/sip_service/test_exec_state_switch.c
+++ b/tftf/tests/runtime_services/sip_service/test_exec_state_switch.c
@@ -130,7 +130,7 @@
int ret;
smc_args args = {
- .arg0 = ARM_SIP_SVC_EXE_STATE_SWITCH,
+ .fid = ARM_SIP_SVC_EXE_STATE_SWITCH,
.arg1 = (u_register_t) -1,
.arg2 = LO32(&state_switch_a32_entry),
.arg3 = HI32(&state_switch_cookie),
@@ -163,7 +163,7 @@
int ret;
smc_args args = {
- .arg0 = ARM_SIP_SVC_EXE_STATE_SWITCH,
+ .fid = ARM_SIP_SVC_EXE_STATE_SWITCH,
.arg1 = HI32(&state_switch_a32_entry),
.arg2 = LO32(&state_switch_a32_entry),
.arg3 = -1,
@@ -195,7 +195,7 @@
int ret;
smc_args args = {
- .arg0 = ARM_SIP_SVC_EXE_STATE_SWITCH,
+ .fid = ARM_SIP_SVC_EXE_STATE_SWITCH,
.arg1 = HI32(&state_switch_a32_entry),
.arg2 = LO32(&state_switch_a32_entry),
.arg3 = HI32(&state_switch_cookie),
@@ -259,7 +259,7 @@
int ret;
smc_args args = {
- .arg0 = ARM_SIP_SVC_EXE_STATE_SWITCH,
+ .fid = ARM_SIP_SVC_EXE_STATE_SWITCH,
.arg1 = HI32(&state_switch_a32_entry),
.arg2 = LO32(&state_switch_a32_entry),
.arg3 = HI32(&state_switch_cookie),
diff --git a/tftf/tests/runtime_services/standard_service/pmf/api_tests/runtime_instr/test_pmf_rt_instr.c b/tftf/tests/runtime_services/standard_service/pmf/api_tests/runtime_instr/test_pmf_rt_instr.c
index ac811e2..3a3701e 100644
--- a/tftf/tests/runtime_services/standard_service/pmf/api_tests/runtime_instr/test_pmf_rt_instr.c
+++ b/tftf/tests/runtime_services/standard_service/pmf/api_tests/runtime_instr/test_pmf_rt_instr.c
@@ -55,7 +55,7 @@
smc_args args = { 0 };
smc_ret_values ret;
- args.arg0 = PMF_SMC_GET_TIMESTAMP;
+ args.fid = PMF_SMC_GET_TIMESTAMP;
args.arg1 = tid;
args.arg2 = read_mpidr_el1();
ret = tftf_smc(&args);
diff --git a/tftf/tests/runtime_services/standard_service/psci/api_tests/migrate_info_type/test_migrate_info_type.c b/tftf/tests/runtime_services/standard_service/psci/api_tests/migrate_info_type/test_migrate_info_type.c
index 73a1048..50462d7 100644
--- a/tftf/tests/runtime_services/standard_service/psci/api_tests/migrate_info_type/test_migrate_info_type.c
+++ b/tftf/tests/runtime_services/standard_service/psci/api_tests/migrate_info_type/test_migrate_info_type.c
@@ -43,7 +43,7 @@
int32_t migrate_ret;
/* Identify the level of multicore support present in the Trusted OS */
- args.arg0 = SMC_PSCI_MIG_INFO_TYPE;
+ args.fid = SMC_PSCI_MIG_INFO_TYPE;
ret = tftf_smc(&args);
mp_support = (int32_t) ret.ret0;
@@ -84,7 +84,7 @@
* Either there is no Trusted OS or the Trusted OS is the TSP.
* In both cases, the MIGRATE call should not be supported.
*/
- args.arg0 = SMC_PSCI_MIG;
+ args.fid = SMC_PSCI_MIG;
/*
* Pass a valid MPID so that the MIGRATE call doesn't fail because of
* invalid parameters
diff --git a/tftf/tests/runtime_services/standard_service/query_std_svc.c b/tftf/tests/runtime_services/standard_service/query_std_svc.c
index e96d4ae..34141d2 100644
--- a/tftf/tests/runtime_services/standard_service/query_std_svc.c
+++ b/tftf/tests/runtime_services/standard_service/query_std_svc.c
@@ -41,7 +41,7 @@
test_result_t test_result = TEST_RESULT_SUCCESS;
/* Standard Service Call UID */
- std_svc_args.arg0 = SMC_STD_SVC_UID;
+ std_svc_args.fid = SMC_STD_SVC_UID;
ret = tftf_smc(&std_svc_args);
make_uuid_from_4words(&std_svc_uuid,
@@ -55,7 +55,7 @@
}
/* Standard Service Call Count */
- std_svc_args.arg0 = SMC_STD_SVC_CALL_COUNT;
+ std_svc_args.fid = SMC_STD_SVC_CALL_COUNT;
ret = tftf_smc(&std_svc_args);
if (ret.ret0 == SMC_UNKNOWN) {
@@ -68,7 +68,7 @@
}
/* Standard Service Call Revision details */
- std_svc_args.arg0 = SMC_STD_SVC_REVISION;
+ std_svc_args.fid = SMC_STD_SVC_REVISION;
ret = tftf_smc(&std_svc_args);
if ((ret.ret0 != STD_SVC_REVISION_MAJOR) ||
diff --git a/tftf/tests/runtime_services/standard_service/unknown_smc.c b/tftf/tests/runtime_services/standard_service/unknown_smc.c
index 70175e3..d2a81ca 100644
--- a/tftf/tests/runtime_services/standard_service/unknown_smc.c
+++ b/tftf/tests/runtime_services/standard_service/unknown_smc.c
@@ -20,7 +20,7 @@
smc_args unk_smc;
smc_ret_values ret;
- unk_smc.arg0 = INVALID_FID;
+ unk_smc.fid = INVALID_FID;
ret = tftf_smc(&unk_smc);
if (ret.ret0 != SMC_UNKNOWN) {
diff --git a/tftf/tests/runtime_services/trusted_os/tsp/test_irq_preempted_std_smc.c b/tftf/tests/runtime_services/trusted_os/tsp/test_irq_preempted_std_smc.c
index 22e35db..b8bfcfe 100644
--- a/tftf/tests/runtime_services/trusted_os/tsp/test_irq_preempted_std_smc.c
+++ b/tftf/tests/runtime_services/trusted_os/tsp/test_irq_preempted_std_smc.c
@@ -125,7 +125,7 @@
* Invoke an STD SMC. Should be pre-empted because of the SGI
* that is waiting.
*/
- std_smc_args.arg0 = TSP_STD_FID(TSP_ADD);
+ std_smc_args.fid = TSP_STD_FID(TSP_ADD);
std_smc_args.arg1 = TEST_VALUE_1;
std_smc_args.arg2 = TEST_VALUE_2;
smc_ret = tftf_smc(&std_smc_args);
@@ -163,7 +163,7 @@
unsigned int core_pos = platform_get_core_pos(core_mpid);
/* Resume the STD SMC. Verify result. */
- std_smc_args.arg0 = TSP_FID_RESUME;
+ std_smc_args.fid = TSP_FID_RESUME;
smc_ret = tftf_smc(&std_smc_args);
if ((smc_ret.ret0 != 0) || (smc_ret.ret1 != TEST_VALUE_1 * 2)
|| (smc_ret.ret2 != TEST_VALUE_2 * 2)) {
@@ -191,7 +191,7 @@
unsigned int core_pos = platform_get_core_pos(core_mpid);
/* Resume the STD SMC. Verify result. */
- std_smc_args.arg0 = TSP_FID_RESUME;
+ std_smc_args.fid = TSP_FID_RESUME;
smc_ret = tftf_smc(&std_smc_args);
if (smc_ret.ret0 != SMC_UNKNOWN) {
tftf_testcase_printf(
@@ -304,7 +304,7 @@
*/
smc_args std_smc_args;
- std_smc_args.arg0 = TSP_FID_RESUME;
+ std_smc_args.fid = TSP_FID_RESUME;
smc_ret_values smc_ret = tftf_smc(&std_smc_args);
if (smc_ret.ret0 != SMC_UNKNOWN) {
tftf_testcase_printf(
@@ -427,7 +427,7 @@
* waiting. It has to be different than the one invoked from the lead
* CPU.
*/
- std_smc_args.arg0 = TSP_STD_FID(TSP_MUL);
+ std_smc_args.fid = TSP_STD_FID(TSP_MUL);
std_smc_args.arg1 = TEST_VALUE_1;
std_smc_args.arg2 = TEST_VALUE_2;
smc_ret = tftf_smc(&std_smc_args);
@@ -458,7 +458,7 @@
}
/* Resume the STD SMC. Verify result. */
- std_smc_args.arg0 = TSP_FID_RESUME;
+ std_smc_args.fid = TSP_FID_RESUME;
smc_ret = tftf_smc(&std_smc_args);
if ((smc_ret.ret0 != 0) || (smc_ret.ret1 != TEST_VALUE_1*TEST_VALUE_1)
|| (smc_ret.ret2 != TEST_VALUE_2*TEST_VALUE_2)) {
@@ -474,7 +474,7 @@
}
/* Try to resume the lead CPU STD SMC. Verify result. */
- std_smc_args.arg0 = TSP_FID_RESUME;
+ std_smc_args.fid = TSP_FID_RESUME;
smc_ret = tftf_smc(&std_smc_args);
if (smc_ret.ret0 != SMC_UNKNOWN) {
tftf_testcase_printf(
@@ -536,7 +536,7 @@
* Invoke an STD SMC. Should be pre-empted because of the SGI that is
* waiting.
*/
- std_smc_args.arg0 = TSP_STD_FID(TSP_ADD);
+ std_smc_args.fid = TSP_STD_FID(TSP_ADD);
std_smc_args.arg1 = TEST_VALUE_1;
std_smc_args.arg2 = TEST_VALUE_2;
smc_ret = tftf_smc(&std_smc_args);
@@ -589,7 +589,7 @@
* Try to resume the STD SMC from the lead CPU. It should be able resume
* the one it generated before and to return the correct result.
*/
- std_smc_args.arg0 = TSP_FID_RESUME;
+ std_smc_args.fid = TSP_FID_RESUME;
smc_ret = tftf_smc(&std_smc_args);
if ((smc_ret.ret0 != 0) || (smc_ret.ret1 != TEST_VALUE_1 * 2) ||
(smc_ret.ret2 != TEST_VALUE_2 * 2)) {
diff --git a/tftf/tests/runtime_services/trusted_os/tsp/test_irq_spurious_gicv2.c b/tftf/tests/runtime_services/trusted_os/tsp/test_irq_spurious_gicv2.c
index 7674840..6eaf046 100644
--- a/tftf/tests/runtime_services/trusted_os/tsp/test_irq_spurious_gicv2.c
+++ b/tftf/tests/runtime_services/trusted_os/tsp/test_irq_spurious_gicv2.c
@@ -70,7 +70,7 @@
smc_ret_values smc_ret;
/* Invoke an STD SMC. */
- std_smc_args.arg0 = TSP_STD_FID(TSP_ADD);
+ std_smc_args.fid = TSP_STD_FID(TSP_ADD);
std_smc_args.arg1 = TEST_VALUE_1;
std_smc_args.arg2 = TEST_VALUE_2;
smc_ret = tftf_smc(&std_smc_args);
@@ -93,7 +93,7 @@
}
} else if (smc_ret.ret0 == TSP_SMC_PREEMPTED) {
/* Resume the STD SMC. */
- std_smc_args.arg0 = TSP_FID_RESUME;
+ std_smc_args.fid = TSP_FID_RESUME;
smc_ret = tftf_smc(&std_smc_args);
preempted_count[core_pos]++;
} else {
diff --git a/tftf/tests/runtime_services/trusted_os/tsp/test_normal_int_switch.c b/tftf/tests/runtime_services/trusted_os/tsp/test_normal_int_switch.c
index c222389..0128ffa 100644
--- a/tftf/tests/runtime_services/trusted_os/tsp/test_normal_int_switch.c
+++ b/tftf/tests/runtime_services/trusted_os/tsp/test_normal_int_switch.c
@@ -129,7 +129,7 @@
SKIP_TEST_IF_TSP_NOT_PRESENT();
/* Standard SMC */
- tsp_svc_params.arg0 = TSP_STD_FID(TSP_ADD);
+ tsp_svc_params.fid = TSP_STD_FID(TSP_ADD);
tsp_svc_params.arg1 = 4;
tsp_svc_params.arg2 = 6;
res = preempt_tsp_via_SGI(&tsp_svc_params, 0);
@@ -137,7 +137,7 @@
return res;
/* Now that we have ensured preemption, issue RESUME */
- tsp_svc_params.arg0 = TSP_FID_RESUME;
+ tsp_svc_params.fid = TSP_FID_RESUME;
tsp_result = tftf_smc(&tsp_svc_params);
/* Check the result of the addition */
@@ -153,7 +153,7 @@
}
/* Standard SMC */
- tsp_svc_params.arg0 = TSP_STD_FID(TSP_SUB);
+ tsp_svc_params.fid = TSP_STD_FID(TSP_SUB);
tsp_svc_params.arg1 = 4;
tsp_svc_params.arg2 = 6;
res = preempt_tsp_via_SGI(&tsp_svc_params, 0);
@@ -161,7 +161,7 @@
return res;
/* Now that we have ensured preemption, issue RESUME */
- tsp_svc_params.arg0 = TSP_FID_RESUME;
+ tsp_svc_params.fid = TSP_FID_RESUME;
tsp_result = tftf_smc(&tsp_svc_params);
/* Check the result of the substraction */
@@ -176,7 +176,7 @@
}
/* Standard SMC */
- tsp_svc_params.arg0 = TSP_STD_FID(TSP_MUL);
+ tsp_svc_params.fid = TSP_STD_FID(TSP_MUL);
tsp_svc_params.arg1 = 4;
tsp_svc_params.arg2 = 6;
res = preempt_tsp_via_SGI(&tsp_svc_params, 0);
@@ -184,7 +184,7 @@
return res;
/* Now that we have ensured preemption, issue RESUME */
- tsp_svc_params.arg0 = TSP_FID_RESUME;
+ tsp_svc_params.fid = TSP_FID_RESUME;
tsp_result = tftf_smc(&tsp_svc_params);
/* Check the result of the multiplication */
@@ -199,7 +199,7 @@
}
/* Standard SMC */
- tsp_svc_params.arg0 = TSP_STD_FID(TSP_DIV);
+ tsp_svc_params.fid = TSP_STD_FID(TSP_DIV);
tsp_svc_params.arg1 = 4;
tsp_svc_params.arg2 = 6;
res = preempt_tsp_via_SGI(&tsp_svc_params, 0);
@@ -207,7 +207,7 @@
return res;
/* Now that we have ensured preemption, issue RESUME */
- tsp_svc_params.arg0 = TSP_FID_RESUME;
+ tsp_svc_params.fid = TSP_FID_RESUME;
tsp_result = tftf_smc(&tsp_svc_params);
/* Check the result of the division */
@@ -241,7 +241,7 @@
SKIP_TEST_IF_TSP_NOT_PRESENT();
/* Standard SMC */
- tsp_svc_params.arg0 = TSP_STD_FID(TSP_ADD);
+ tsp_svc_params.fid = TSP_STD_FID(TSP_ADD);
tsp_svc_params.arg1 = 4;
tsp_svc_params.arg2 = 6;
res = preempt_tsp_via_SGI(&tsp_svc_params, 0);
@@ -249,7 +249,7 @@
return res;
/* Now that we have ensured preemption, issue Fast SMC */
- tsp_svc_params.arg0 = TSP_FAST_FID(TSP_ADD);
+ tsp_svc_params.fid = TSP_FAST_FID(TSP_ADD);
tsp_svc_params.arg1 = 4;
tsp_svc_params.arg2 = 6;
@@ -262,7 +262,7 @@
}
/* Issue RESUME */
- tsp_svc_params.arg0 = TSP_FID_RESUME;
+ tsp_svc_params.fid = TSP_FID_RESUME;
tsp_result = tftf_smc(&tsp_svc_params);
/* Check the result of the addition */
@@ -302,7 +302,7 @@
SKIP_TEST_IF_TSP_NOT_PRESENT();
/* Standard SMC */
- tsp_svc_params.arg0 = TSP_STD_FID(TSP_ADD);
+ tsp_svc_params.fid = TSP_STD_FID(TSP_ADD);
tsp_svc_params.arg1 = 4;
tsp_svc_params.arg2 = 6;
res = preempt_tsp_via_SGI(&tsp_svc_params, 0);
@@ -310,7 +310,7 @@
return res;
/* Now that we have ensured preemption, issue Standard SMC */
- tsp_svc_params.arg0 = TSP_STD_FID(TSP_ADD);
+ tsp_svc_params.fid = TSP_STD_FID(TSP_ADD);
tsp_svc_params.arg1 = 4;
tsp_svc_params.arg2 = 6;
@@ -322,7 +322,7 @@
}
/* Issue ABORT or RESUME */
- tsp_svc_params.arg0 = abort_smc ? TSP_FID_ABORT : TSP_FID_RESUME;
+ tsp_svc_params.fid = abort_smc ? TSP_FID_ABORT : TSP_FID_RESUME;
tsp_result = tftf_smc(&tsp_svc_params);
/*
@@ -370,7 +370,7 @@
SKIP_TEST_IF_TSP_NOT_PRESENT();
/* Issue RESUME */
- tsp_svc_params.arg0 = TSP_FID_RESUME;
+ tsp_svc_params.fid = TSP_FID_RESUME;
tsp_result = tftf_smc(&tsp_svc_params);
if (tsp_result.ret0 != SMC_UNKNOWN) {
@@ -403,7 +403,7 @@
while ((count < STRESS_COUNT) &&
(res == TEST_RESULT_SUCCESS)) {
/* Standard SMC */
- tsp_svc_params.arg0 = TSP_STD_FID(TSP_ADD);
+ tsp_svc_params.fid = TSP_STD_FID(TSP_ADD);
tsp_svc_params.arg1 = 4;
tsp_svc_params.arg2 = 6;
/* Try to preempt TSP via IRQ */
@@ -412,7 +412,7 @@
return res;
/* Issue RESUME */
- tsp_svc_params.arg0 = TSP_FID_RESUME;
+ tsp_svc_params.fid = TSP_FID_RESUME;
tsp_result = tftf_smc(&tsp_svc_params);
/* Check the result of the addition */
@@ -454,7 +454,7 @@
SKIP_TEST_IF_TSP_NOT_PRESENT();
/* Standard SMC */
- tsp_svc_params.arg0 = TSP_STD_FID(TSP_ADD);
+ tsp_svc_params.fid = TSP_STD_FID(TSP_ADD);
tsp_svc_params.arg1 = 4;
tsp_svc_params.arg2 = 6;
res = preempt_tsp_via_SGI(&tsp_svc_params, 1);
@@ -462,7 +462,7 @@
return res;
/* Now that we have ensured preemption, issue RESUME */
- tsp_svc_params.arg0 = TSP_FID_RESUME;
+ tsp_svc_params.fid = TSP_FID_RESUME;
tsp_result = tftf_smc(&tsp_svc_params);
/* Check the result of the addition */
diff --git a/tftf/tests/runtime_services/trusted_os/tsp/test_smc_tsp_std_fn_call.c b/tftf/tests/runtime_services/trusted_os/tsp/test_smc_tsp_std_fn_call.c
index 8363676..6e99309 100644
--- a/tftf/tests/runtime_services/trusted_os/tsp/test_smc_tsp_std_fn_call.c
+++ b/tftf/tests/runtime_services/trusted_os/tsp/test_smc_tsp_std_fn_call.c
@@ -29,7 +29,7 @@
SKIP_TEST_IF_TSP_NOT_PRESENT();
/* TrustedOS Service Call Count */
- std_svc_args.arg0 = SMC_TOS_CALL_COUNT;
+ std_svc_args.fid = SMC_TOS_CALL_COUNT;
ret = tftf_smc(&std_svc_args);
if (ret.ret0 != TSP_NUM_FID) {
tftf_testcase_printf("Wrong Call Count: expected %u,\n"
@@ -39,7 +39,7 @@
}
/* TrustedOS Service Call Revision details */
- std_svc_args.arg0 = SMC_TOS_REVISION;
+ std_svc_args.fid = SMC_TOS_REVISION;
ret = tftf_smc(&std_svc_args);
if ((ret.ret0 != TSP_REVISION_MAJOR) ||
ret.ret1 != TSP_REVISION_MINOR) {