Skip to content

Commit

Permalink
fixup! pta: stm32mp: add new remoteproc pta
Browse files Browse the repository at this point in the history
- match with the update of the stm32_rproc_unmap() API,
- improve comment concerning the remoteproc_ta UUID definition.

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
Change-Id: I8ec2016889691b0cfe6c3d25f89c58c811f60d96
  • Loading branch information
arnopo committed Dec 6, 2023
1 parent 3b7214c commit 952fad3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/pta/stm32mp/remoteproc_pta.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@

/*
* UUID of the remoteproc Trusted application authorized to communicate with
* the remoteproc pseudo TA
* the remoteproc pseudo TA. The UID should match the one defined in the
* ta_remoteproc.h header file.
*/

#define TA_REMOTEPROC_UUID \
{ 0x80a4c275, 0x0a47, 0x4905, \
{ 0x82, 0x85, 0x14, 0x86, 0xa9, 0x77, 0x1a, 0x08} }
Expand Down Expand Up @@ -111,7 +111,7 @@ static TEE_Result rproc_pta_load_segment(uint32_t pt,
if (res)
memset(dst, 0, size);

stm32_rproc_unmap(params[0].value.a, pa, size);
stm32_rproc_unmap(params[0].value.a, dst, size);

return res;
}
Expand Down Expand Up @@ -149,7 +149,7 @@ static TEE_Result rproc_pta_set_memory(uint32_t pt,

memset(dst, value, size);

return stm32_rproc_unmap(params[0].value.a, pa, size);
return stm32_rproc_unmap(params[0].value.a, dst, size);
}

static TEE_Result rproc_pta_da_to_pa(uint32_t pt,
Expand Down

0 comments on commit 952fad3

Please sign in to comment.