summaryrefslogtreecommitdiff
path: root/tests/runtime_services/standard_service/psci/api_tests/system_suspend/test_psci_system_suspend.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/runtime_services/standard_service/psci/api_tests/system_suspend/test_psci_system_suspend.c')
-rw-r--r--tests/runtime_services/standard_service/psci/api_tests/system_suspend/test_psci_system_suspend.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/runtime_services/standard_service/psci/api_tests/system_suspend/test_psci_system_suspend.c b/tests/runtime_services/standard_service/psci/api_tests/system_suspend/test_psci_system_suspend.c
index 5cb0af1..aedfdc5 100644
--- a/tests/runtime_services/standard_service/psci/api_tests/system_suspend/test_psci_system_suspend.c
+++ b/tests/runtime_services/standard_service/psci/api_tests/system_suspend/test_psci_system_suspend.c
@@ -239,17 +239,17 @@ test_result_t test_system_suspend_from_all_cores(void)
/*
* Helper function to issue SYSTEM SUSPEND SMC with custom parameters.
*/
-int sys_suspend_helper(uint64_t entry_point_address,
- uint64_t context_id)
+int sys_suspend_helper(uintptr_t entry_point_address,
+ u_register_t context_id)
{
- smc64_args args = {
+ smc_args args = {
SMC_PSCI_SYSTEM_SUSPEND64,
- (uint64_t)entry_point_address,
- (uint64_t)context_id
+ (uintptr_t)entry_point_address,
+ (u_register_t)context_id
};
- smc64_ret_values ret_vals;
+ smc_ret_values ret_vals;
- ret_vals = tftf_smc64(&args);
+ ret_vals = tftf_smc(&args);
return ret_vals.ret0;
}
@@ -270,7 +270,7 @@ static test_result_t invalid_entrypoint_for_sys_suspend(void)
while (!is_sys_suspend_state_ready())
;
- psci_ret = sys_suspend_helper((uint64_t) 0x1, 0);
+ psci_ret = sys_suspend_helper((uintptr_t) 0x1, 0);
if (psci_ret != PSCI_E_INVALID_ADDRESS) {
tftf_testcase_printf("Test failed with invalid entry addr %x\n",
psci_ret);