]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/pdk.git/blobdiff - packages/ti/osal/src/tirtos/SemaphoreP_tirtos.c
AM64x Merge to master
[processor-sdk/pdk.git] / packages / ti / osal / src / tirtos / SemaphoreP_tirtos.c
index 9413636bbdcab7c2933dcf984a14b2d10c906f1a..173c5e18bfafb328d6ccef194fd711a9723b68bd 100755 (executable)
@@ -103,7 +103,7 @@ SemaphoreP_Handle SemaphoreP_create(uint32_t count,
     {
         /* pick up the external memory block configured */
         semPool        = (SemaphoreP_tiRtos *) gOsal_HwAttrs.extSemaphorePBlock.base;
-        temp           = ((uintptr_t) semPool) + gOsal_HwAttrs.extSemaphorePBlock.size;
+        temp           = (uintptr_t) gOsal_HwAttrs.extSemaphorePBlock.size;
         maxSemaphores  = (uint32_t)(temp/(sizeof(SemaphoreP_tiRtos)));
     }
     else