aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSunita Nadampalli2013-09-13 06:05:29 -0500
committerSunita Nadampalli2013-09-13 06:05:29 -0500
commite6859266dde6d2c5a85b43fd1ca27ce093b93eb8 (patch)
tree76e5e158b6016e57a26f00421c49fa8b39f301fd /libdce_linux.c
parent71a368d4d01d0dd7bd80f1189fe205f4645fd320 (diff)
downloadrepo-libdce-e6859266dde6d2c5a85b43fd1ca27ce093b93eb8.tar.gz
repo-libdce-e6859266dde6d2c5a85b43fd1ca27ce093b93eb8.tar.xz
repo-libdce-e6859266dde6d2c5a85b43fd1ca27ce093b93eb8.zip
[LIBDCE] update memplugin headers and apis
memheader and memplugin apis are extended to meet the requirements for mem allocations/free/share for all OSes. Change-Id: Ide911d1654ccd0807ace37de9576299cbb860d07 Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
Diffstat (limited to 'libdce_linux.c')
-rw-r--r--libdce_linux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdce_linux.c b/libdce_linux.c
index a723e7d..3de9b15 100644
--- a/libdce_linux.c
+++ b/libdce_linux.c
@@ -86,7 +86,7 @@ int dce_buf_lock(int num, size_t *handle)
86 86
87 _ASSERT(num > 0, DCE_EINVALID_INPUT); 87 _ASSERT(num > 0, DCE_EINVALID_INPUT);
88 88
89 desc = memplugin_alloc(num * sizeof(MmRpc_BufDesc), 0, TILER_1D_BUFFER); 89 desc = memplugin_alloc(num * sizeof(MmRpc_BufDesc), 1, MEM_TILER_1D, 0, 0);
90 _ASSERT(desc != NULL, DCE_EOUT_OF_MEMORY); 90 _ASSERT(desc != NULL, DCE_EOUT_OF_MEMORY);
91 91
92 for( i = 0; i < num; i++ ) { 92 for( i = 0; i < num; i++ ) {
@@ -108,7 +108,7 @@ int dce_buf_unlock(int num, size_t *handle)
108 108
109 _ASSERT(num > 0, DCE_EINVALID_INPUT); 109 _ASSERT(num > 0, DCE_EINVALID_INPUT);
110 110
111 desc = memplugin_alloc(num * sizeof(MmRpc_BufDesc), 0, TILER_1D_BUFFER); 111 desc = memplugin_alloc(num * sizeof(MmRpc_BufDesc), 1, MEM_TILER_1D, 0, 0);
112 _ASSERT(desc != NULL, DCE_EOUT_OF_MEMORY); 112 _ASSERT(desc != NULL, DCE_EOUT_OF_MEMORY);
113 113
114 for( i = 0; i < num; i++ ) { 114 for( i = 0; i < num; i++ ) {