summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPradeep Venkatasubbarao2014-03-21 06:16:17 -0500
committerPradeep Venkatasubbarao2014-03-21 06:16:17 -0500
commit6aaa22111c89a6aa02fe15094f0d35fee5b3d2c7 (patch)
tree5100f85d0003f2aec636a1f97241899dc7cf99a0 /src/ti/framework/dce/dce_priv.h
parentca779d774a45e4c68e0a9ecfecb1956a0f8ec9d1 (diff)
downloaddspdce-6aaa22111c89a6aa02fe15094f0d35fee5b3d2c7.tar.gz
dspdce-6aaa22111c89a6aa02fe15094f0d35fee5b3d2c7.tar.xz
dspdce-6aaa22111c89a6aa02fe15094f0d35fee5b3d2c7.zip
update MemHeader to hold the flags
The MemHeader structure is updated to hold the memory attribute flags. This change is triggered by the need to hold the coreid in the flags from the libdce perpective. In future flags can be used to hold more attributes. The least significant 4 bits is assumed to hold the coreid. This information is noted needed by the remoteproc. Its only for book keeping and the structure sizes on MPU and remote procs must match. dependent MPU Patch: http://review.omapzoom.org/#/c/34863 Signed-off-by: Pradeep Venkatasubbarao <pradeepv@ti.com>
Diffstat (limited to 'src/ti/framework/dce/dce_priv.h')
-rw-r--r--src/ti/framework/dce/dce_priv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ti/framework/dce/dce_priv.h b/src/ti/framework/dce/dce_priv.h
index 1e46955..3be0ffd 100644
--- a/src/ti/framework/dce/dce_priv.h
+++ b/src/ti/framework/dce/dce_priv.h
@@ -77,6 +77,7 @@ typedef struct MemHeader {
77 uint32_t offset; /* offset for the actual data with in the buffer */ 77 uint32_t offset; /* offset for the actual data with in the buffer */
78 int32_t map_fd; /* mmapped fd */ 78 int32_t map_fd; /* mmapped fd */
79 void * handle; /*custom handle for the HLOS memallocator*/ 79 void * handle; /*custom handle for the HLOS memallocator*/
80 int32_t flags; /*Holds memory attributes*/
80} MemHeader; 81} MemHeader;
81 82
82#define P2H(p) (&(((MemHeader *)(p))[-1])) 83#define P2H(p) (&(((MemHeader *)(p))[-1]))