aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSaurabh Bipin Chandra2013-05-23 01:55:26 -0500
committerSaurabh Bipin Chandra2013-05-23 05:37:38 -0500
commitc4d2df1d6b5d291d93e029eb0606029a6a2cccea (patch)
treee484ae284784e60e6ce2c067c9db9ffa056c3522 /libdce.c
parente76039ed3db729204c94e542cceb5f28a9f61f56 (diff)
downloadrepo-libdce-c4d2df1d6b5d291d93e029eb0606029a6a2cccea.tar.gz
repo-libdce-c4d2df1d6b5d291d93e029eb0606029a6a2cccea.tar.xz
repo-libdce-c4d2df1d6b5d291d93e029eb0606029a6a2cccea.zip
Fix to pass right translation param to IPC.
The base field of the MmRpc_Xlt translation structure needs to be value of the address to be translated. The code was wrongly setting base to the location of the address. This has been corrected. This didn't create issues because the IPC doesnot use the base field for address translation. IPC uses offset to find the address to be translated. Change-Id: I404c7dc61cf3f4b5b584008b13336441420149d8 Signed-off-by: Saurabh Bipin Chandra <a0131926@ti.com>
Diffstat (limited to 'libdce.c')
-rw-r--r--libdce.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdce.c b/libdce.c
index 6808f00..4e18039 100644
--- a/libdce.c
+++ b/libdce.c
@@ -144,7 +144,7 @@ static inline void Fill_MmRpc_fxnCtx_Xlt_Array(MmRpc_Xlt *mmrpc_xlt, int index,
144 /* offset : calculated from address of index */ 144 /* offset : calculated from address of index */
145 mmrpc_xlt->index = index; 145 mmrpc_xlt->index = index;
146 mmrpc_xlt->offset = MmRpc_OFFSET(base, addr); 146 mmrpc_xlt->offset = MmRpc_OFFSET(base, addr);
147 mmrpc_xlt->base = (size_t)addr; 147 mmrpc_xlt->base = *(size_t *)addr; //*((void *)addr);
148 mmrpc_xlt->handle = (size_t)handle; 148 mmrpc_xlt->handle = (size_t)handle;
149} 149}
150 150