Commit 3301c450 authored by Oleksii Moisieiev's avatar Oleksii Moisieiev Committed by Anas Nashif
Browse files

tests: drivers: tee: Fix normal_call behaviour in tests



During SMC_RPC_FUNC_ALLOC call optee driver puts new shm object to a4
and a5 variables and then expects this object to be in a1 and a2 from
OP-TEE OS. Fixed behaviour so normal_call callback will act the same
way as OP-TEE OS

Signed-off-by: default avatarOleksii Moisieiev <oleksii_moisieiev@epam.com>
parent 92408c02
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -246,11 +246,11 @@ void normal_call(unsigned long a0, unsigned long a1, unsigned long a2, unsigned
	switch (t_call.num) {
	case 0:
		res->a0 = OPTEE_SMC_RETURN_RPC_PREFIX | OPTEE_SMC_RPC_FUNC_ALLOC;
		res->a1 = a1;
		res->a2 = a2;
		res->a1 = a4;
		res->a2 = a5;
		res->a3 = a3;
		res->a4 = a4;
		res->a5 = a5;
		res->a4 = 0;
		res->a5 = 0;
		break;
	case 1:
		zassert_equal(a0, 0x32000003, "%s failed with ret %lx", __func__, a0);