forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 82
Closed
Description
I am facing issues on arm aarch64. For example the following code in core.c in optee driver:
invoke_fn(OPTEE_SMC_CALLS_UID, 0, 0, 0, 0, 0, 0, 0, &res);
As all arguments are expected to be 64 bit, OPTEE_SMC_CALLS_UID is signed extended to 64 making the higher 32 bits are all '1'.
This is causing issues with OPTEE and it is not able to recognize the SMC function id.
Has OPTEE 2.0.0 tested on a aarch64 platform or am I doing something wrong?
I guess macros such as
define ARM_SMCCC_FAST_CALL 1
define ARM_SMCCC_STD_CALL 0
needs to be replaced by
define ARM_SMCCC_FAST_CALL 1U
define ARM_SMCCC_STD_CALL 0U
in file include/linux/arm-smccc.h or change in optee function id comparision (optee os compares this function id value with unsigned value)
After the above mentioned changed, my xtests are running on aarch64 platform
Metadata
Metadata
Assignees
Labels
No labels