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

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


  • To: minios-devel@xxxxxxxxxxxxx
  • From: Costin Lupu <costin.lupu@xxxxxxxxx>
  • Date: Mon, 3 Jun 2019 18:16:38 +0300
  • Cc: Florian.Schmidt@xxxxxxxxx
  • Delivery-date: Mon, 03 Jun 2019 15:16:52 +0000
  • Ironport-phdr: 9a23:Zj7LbxK174IkiqfQONmcpTZWNBhigK39O0sv0rFitYgeKP7xwZ3uMQTl6Ol3ixeRBMOHsqsC0rGJ+PC5EUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRpOOv1BpTSj8Oq3Oyu5pHfeQpFiCegbb9oMRm7owfcusYVjId/N6081gbHrnxUdupM2GhmP0iTnxHy5sex+J5s7SFdsO8/+sBDTKv3Yb02QaRXAzo6PW814tbrtQTYQguU+nQcSGQWnQFWDAXD8Rr3Q43+sir+tup6xSmaIcj7Rq06VDi+86tmTgLjhSEaPDA77W7XkNR9gqJFrhy8qRJxwInab4ObNPdlYq/RYckXSXZbU8pNSyBMBJ63YYsVD+oGOOZVt5fwp1wVrRuiBAmsAv7kxDlVhn/uwK0xzuMsHh3B3Aw7A9IOsXLUoM/xNKcPSeC10bLFwinYb/9MwTf99ZPHfgo7ofGLRL99d9fax0o3Fw7dk1mdppHpMymW2+kNqWSX8fRsWOC1h2Mpsw19vzeiyto2hoTKho8Z0E7I+Ct3zYovONG1R1B3bNi5G5VKrS6aLZF5QsY6TmFtvyY116MJtIagfCgP1JQn3xnfa+Gbc4SQ4hLsSuKRITBgiXJ7fbKwnRey8Uy6xuLgTcm4yk5KrjdendXWrHAN0ATf6smBSvRj4keswSuD2g/O5u1eIk05lbDXJ4A/zrMyjJYev1zPHirsl0X3iK+WeF8k+u+t6+n/frrmoYScN5N1igH4KKguntG/AfwlMgUVQ2eb4v6w1KX+/ULiWrlKlPo2nrHDsJ/GPcQburK5AwhN34Ym6ha/CTam0NMDnXUeMV1KZgyHgJbtO1zVJPD4DOy/g0i3kDtxyPHJILvhDo/KLnjZn7frZax95FJEyAov0dBf4IpZBLEFIPL0QE/xtcbXDhkjPwKp3+nnCNB91oIDVmKTGaKZNr3dvkOM5u01OOaAfpEauCuuY8Qisvvvi34+ghoRcLek2bMTaWukBbJ2LkPfZmDj0fkbFmJflQ0lUO3swHmfSSMbM321RL494Hc/FZq7JYzYAJiwivqb23HoTdVtemlaBwXUQj/TfIKeVqJUZQ==
  • Ironport-sdr: MqSHRv1wJ+mwOiEuk95Pjy+y0vs7+Of5yNqWUtnrzn43owxLz1qHq2iZqTB/Ti9KF81h0i4Wm7 cSIZPmP+Bl1A==
  • 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 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
 
 /****************************************************************************
  *
-- 
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®.