Message ID | 1475836517-60484-6-git-send-email-christophe.milard@linaro.org |
---|---|
State | Superseded |
Headers | show |
diff --git a/platform/linux-generic/odp_shared_memory.c b/platform/linux-generic/odp_shared_memory.c index 609b324..0513047 100644 --- a/platform/linux-generic/odp_shared_memory.c +++ b/platform/linux-generic/odp_shared_memory.c @@ -43,6 +43,7 @@ odp_shm_t odp_shm_reserve(const char *name, uint64_t size, uint64_t align, /* set internal ishm flags according to API flags: */ flgs |= (flags & ODP_SHM_PROC) ? _ODP_ISHM_LINK : 0; + flgs |= (flags & ODP_SHM_SINGLE_VA) ? _ODP_ISHM_SINGLE_VA : 0; block_index = _odp_ishm_reserve(name, size, -1, align, flgs, flags); if (block_index >= 0)
This flag guarentess the unicity the the block address on all ODP threads. The patch just exposes the _ODP_ISHM_SINGLE_VA flag of the internal memory allocator, ishm. Signed-off-by: Christophe Milard <christophe.milard@linaro.org> --- platform/linux-generic/odp_shared_memory.c | 1 + 1 file changed, 1 insertion(+) -- 2.7.4