[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT/PTHREAD-EMBEDDED PATCH 6/8] Disable atomic functions


  • To: minios-devel@xxxxxxxxxxxxx
  • From: Costin Lupu <costin.lupu@xxxxxxxxx>
  • Date: Mon, 15 Apr 2019 15:43:18 +0300
  • Cc: felipe.huici@xxxxxxxxx, Florian.Schmidt@xxxxxxxxx, simon.kuenzer@xxxxxxxxx, yuri.volchkov@xxxxxxxxx, sharan.santhanam@xxxxxxxxx
  • Delivery-date: Mon, 15 Apr 2019 12:44:39 +0000
  • Ironport-phdr: 9a23:sqhFshA0qJXnzcZx7j5rUyQJP3N1i/DPJgcQr6AfoPdwSP36p8uwAkXT6L1XgUPTWs2DsrQY0rOQ6fGrBDZIoc7Y9ixbKNoUD15NoP5VtjRoONSCB0z/IayiRA0BN+MGamVY+WqmO1NeAsf0ag6aiHSz6TkPBke3blItdaz6FYHIksu4yf259YHNbAVUnjq9Zq55IAmroQnLucQanJZuJrwvxhbNrXdFe/pazn5sKV6Pghrw/Mi98IN//yhKp/4t68tMWrjmcqolSrBVEC4oOH0v6s3xshnDQwqP5n8CXWgTjxFFHQvL4gzkU5noqif1ufZz1yecPc3tULA7Qi+i4LtxSB/pkygIKTg0+3zKh8NqjaJbpBWhpwFjw4PRfYqYOuZycr/bcNgHQ2dKQ8RfWDFbAo6kb4UBEfcPM+hboYf6pVQOowCzCRWwCO711jNFnGP60bE83u88EQ/GxgsgH9cWvXnKq9X1L7sSUeGzzKLVyzvDcutW2Srg44XPbh8hpuqMXa5xccrX00UvEx7Fjk2NqYH+IzyVzf4Bs3CG7+V7T+6vkWknphh3rzOyxckskpHEip8ax1zZ7yl0w4Y4KcemREJlY9OoCpVduzmHO4Z5X88uWWJltSYgxrEYt5O2cjIGxIkoyhLBbfGMbpKG7Qj5VOmLJDd1nHdleLWiiBms6UWg0ej8VtWs0FZNsypFjsHAtnAT2BzX7ciKUuV9/kK71jaO0wDf8P1LIVsumarDNp4u2aQ8loAUsUjbHy/2nlv5jLOOe0k59eWk9v7rb7bmq5OGKYN4lAPzPr4gl8CnBOQ3KAkOX2yV+eSm073j+FX0T6lNjv0tjqnZsZbaKd4fpq6kGw9Vz50u5AqkDzu8yNQYgGIIIEhfeBKAl4TpIU3BIOjkDfejhFShiDJrx/HAPr3gBZXNNWHPn6r/crZj9UFczBE+zdRe55JPFrEBO+j/W0Dvu9zeFBM5NBa0w+n/AtVnyoweQX6PArOeMK7KsVGI4uUvI/ONZIAPvjbxMeUr6OLujX88mF8SYLWp0IARaH+mAvtmJ1+WbmH2jtgfDGcAphA+Q/DyiF2eTT5TYG6/X6wi6TE/CYKmFZnMSpqtgLyc3Se0ApxWa3tACl+SDXjoc5+LVOwWZC2MP89riiYEWqS5S489yRGusxf3y6FnLuXO4C0Xr5Tj2MJu5+LJkxEy6Tx0AN6b026XSmF5hWUISCEq06B7u0Ny0U2P3rZlg/ZAD9xc++tJUhsmNZ7b1+F6ENHyWgfGftePUlqmQcimDi83TtMw3dAOeV1wG9O8gR/f2yqlGaQam6aVC5wp6qjcxWT+J95hy3ba06ksl1knQtZVNW2nnKJ/6Q/TB4rVnEWZlKaqcroc0TXL9Gid0WWOuFtXXxVqXarbQHBMLnfR+NH44ELFVPqiBKoqNiNFyNWeMe1aZ9uvik9JF9n5P9GLSGWqh2a2TTKV3q7EOIHtYHkc2mPZFVAZuwsIu26bP04kAXHy8CrlEDVyGAe3MAvX+u5kpSbjQw==
  • Ironport-sdr: zOOZgEIPtz9aER10EYhtPDvzKMu5q5f5F+u5yAALU4ohMLiMEjXnnB+Xb08cf2Kl0q5s5o/YXy ejSpdA/fGsbA==
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>

We disable the atomic function given that we are using them as macros.

Signed-off-by: Costin Lupu <costin.lupu@xxxxxxxxx>
---
 pte_osal.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/pte_osal.c b/pte_osal.c
index 8565f49..6be62e3 100644
--- a/pte_osal.c
+++ b/pte_osal.c
@@ -446,6 +446,8 @@ pte_osResult 
pte_osSemaphoreCancellablePend(pte_osSemaphoreHandle h,
        return result;
 }
 
+#if 0
+/* We use macros instead */
 /****************************************************************************
  *
  * Atomic Operations
@@ -485,6 +487,7 @@ int pte_osAtomicIncrement(int *pdest)
 {
        return atomic_add(pdest, 1);
 }
+#endif
 
 /****************************************************************************
  *
-- 
2.11.0


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.