]> xenbits.xensource.com Git - unikraft/libs/pthread-embedded.git/commitdiff
Disable atomic functions
authorCostin Lupu <costin.lupu@cs.pub.ro>
Mon, 3 Jun 2019 15:16:38 +0000 (18:16 +0300)
committerFlorian Schmidt <florian.schmidt@neclab.eu>
Tue, 4 Jun 2019 13:41:26 +0000 (15:41 +0200)
We disable the atomic function given that we are using them as macros.

Signed-off-by: Costin Lupu <costin.lupu@cs.pub.ro>
Reviewed-by: Florian Schmidt <florian.schmidt@neclab.eu>
pte_osal.c

index 5cbc0a21afdf680016dea4e01ddd21db91503bdc..23dcd01559af2982ac1d5743a0415095eec55301 100644 (file)
@@ -450,6 +450,8 @@ pte_osResult pte_osSemaphoreCancellablePend(pte_osSemaphoreHandle h,
        return result;
 }
 
+#if 0
+/* We use macros instead */
 /****************************************************************************
  *
  * Atomic Operations
@@ -489,6 +491,7 @@ int pte_osAtomicIncrement(int *pdest)
 {
        return atomic_add(pdest, 1);
 }
+#endif
 
 /****************************************************************************
  *