From c57c792bc52a2084bfba2c9e55b7e71a659dc9ef Mon Sep 17 00:00:00 2001 From: Costin Lupu Date: Mon, 3 Jun 2019 18:16:38 +0300 Subject: [PATCH] Disable atomic functions We disable the atomic function given that we are using them as macros. Signed-off-by: Costin Lupu Reviewed-by: Florian Schmidt --- pte_osal.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pte_osal.c b/pte_osal.c index 5cbc0a2..23dcd01 100644 --- a/pte_osal.c +++ b/pte_osal.c @@ -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 /**************************************************************************** *