|
|
@ -156,8 +156,8 @@ static uintptr_t eemi_for_compatibility(uint32_t api_id, uint32_t *pm_arg, |
|
|
|
ret = pm_query_data(pm_arg[0], pm_arg[1], pm_arg[2], |
|
|
|
pm_arg[3], data, security_flag); |
|
|
|
|
|
|
|
SMC_RET2(handle, (uint64_t)ret | ((uint64_t)data[0] << 32), |
|
|
|
(uint64_t)data[1] | ((uint64_t)data[2] << 32)); |
|
|
|
SMC_RET2(handle, (uint64_t)ret | ((uint64_t)data[0] << 32U), |
|
|
|
(uint64_t)data[1] | ((uint64_t)data[2] << 32U)); |
|
|
|
} |
|
|
|
|
|
|
|
case PM_FEATURE_CHECK: |
|
|
@ -165,8 +165,8 @@ static uintptr_t eemi_for_compatibility(uint32_t api_id, uint32_t *pm_arg, |
|
|
|
uint32_t result[PAYLOAD_ARG_CNT] = {0U}; |
|
|
|
|
|
|
|
ret = pm_feature_check(pm_arg[0], result, security_flag); |
|
|
|
SMC_RET2(handle, (uint64_t)ret | ((uint64_t)result[0] << 32), |
|
|
|
(uint64_t)result[1] | ((uint64_t)result[2] << 32)); |
|
|
|
SMC_RET2(handle, (uint64_t)ret | ((uint64_t)result[0] << 32U), |
|
|
|
(uint64_t)result[1] | ((uint64_t)result[2] << 32U)); |
|
|
|
} |
|
|
|
|
|
|
|
case PM_LOAD_PDI: |
|
|
@ -255,13 +255,13 @@ static uintptr_t TF_A_specific_handler(uint32_t api_id, uint32_t *pm_arg, |
|
|
|
|
|
|
|
pm_get_callbackdata(result, ARRAY_SIZE(result), security_flag); |
|
|
|
SMC_RET2(handle, |
|
|
|
(uint64_t)result[0] | ((uint64_t)result[1] << 32), |
|
|
|
(uint64_t)result[2] | ((uint64_t)result[3] << 32)); |
|
|
|
(uint64_t)result[0] | ((uint64_t)result[1] << 32U), |
|
|
|
(uint64_t)result[2] | ((uint64_t)result[3] << 32U)); |
|
|
|
} |
|
|
|
|
|
|
|
case PM_GET_TRUSTZONE_VERSION: |
|
|
|
SMC_RET1(handle, (uint64_t)PM_RET_SUCCESS | |
|
|
|
((uint64_t)VERSAL_TZ_VERSION << 32)); |
|
|
|
((uint64_t)VERSAL_TZ_VERSION << 32U)); |
|
|
|
|
|
|
|
default: |
|
|
|
return (uintptr_t)0; |
|
|
|