Verified Commit aebeb222 authored by Michael R. Crusoe's avatar Michael R. Crusoe 🏳️‍🌈
Browse files

Fix thread wait assembly for IA64.

parent 2f92c8c9
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
seqan2 (2.4.0+dfsg-10) UNRELEASED; urgency=medium

  * debian/patches/ia64_yield: Fix thread wait assembly for IA64.
    Closes: #890185

 -- Michael R. Crusoe <michael.crusoe@gmail.com>  Wed, 02 Jan 2019 03:47:37 -0800

seqan2 (2.4.0+dfsg-9) unstable; urgency=medium

  [ Michael R. Crusoe ]
+13 −0
Original line number Diff line number Diff line
From: Michael R. Crusoe <michael.crusoe@gmail.com>
Subject: Fix thread wait for IA64
--- seqan2.orig/include/seqan/parallel/parallel_lock.h
+++ seqan2/include/seqan/parallel/parallel_lock.h
@@ -233,6 +233,8 @@
     __asm__ __volatile__ ("or 27,27,27" ::: "memory");
 #elif defined(__SSE2__)  // AMD and Intel
     _mm_pause();
+#elif defined(__ia64__)  // IA64
+    __asm__ __volatile__ ("hint @pause");
 #else  // everything else.
     asm volatile ("nop" ::: "memory");  // default operation - does nothing => Might lead to passive spinning.
 #endif
+1 −0
Original line number Diff line number Diff line
@@ -7,3 +7,4 @@ install_fiona_illumina
ctdVersion.patch
fix_manpage_formatting.patch
no-unaligned-access.patch
ia64_yield