diff --git a/packages/ti/osal/src/nonos/SemaphoreP_nonos.c b/packages/ti/osal/src/nonos/SemaphoreP_nonos.c
index ad077de8b61e19127e5ca9a5924a31444e8f34c7..619a0a5bbb293b88914373f30c02e2ec61c5bbb2 100755 (executable)
{
/* pick up the external memory block configured */
semPool = (Sem_Struct *) gOsal_HwAttrs.extSemaphorePBlock.base;
- temp = ((uintptr_t) semPool) + gOsal_HwAttrs.extSemaphorePBlock.size;
+ temp = (uintptr_t) gOsal_HwAttrs.extSemaphorePBlock.size;
maxSemaphores = (uint32_t)(temp/(sizeof(Sem_Struct)));
}
else