]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/pdk.git/blobdiff - packages/ti/osal/src/nonos/SemaphoreP_nonos.c
AM64x Merge to master
[processor-sdk/pdk.git] / packages / ti / osal / src / nonos / SemaphoreP_nonos.c
index ad077de8b61e19127e5ca9a5924a31444e8f34c7..619a0a5bbb293b88914373f30c02e2ec61c5bbb2 100755 (executable)
@@ -110,7 +110,7 @@ SemaphoreP_Handle SemaphoreP_create(uint32_t count,
     {
         /* 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