Package: heaplayers
Version: 3.2.2-1
Severity: important
Tags: patch
Hi,
Your package is failing to build on most arches with the
following error:
../../heaplayers/spinlock.h:231:2: #error "No spin lock
implementation is available for this platform."
Here is a patch that should add spinlocks for amd64.
But may I suggest you use an alternative way to get spinlocks for
all arches, like for instance those provided by the pthread
library.
Kurt
--- heaplayers/spinlock.h.old 2005-03-27 15:41:56.211857928 +0200
+++ heaplayers/spinlock.h 2005-03-27 15:42:20.815117664 +0200
@@ -211,6 +211,11 @@
: "=r" (newval)
: "m" (*oldval), "0" (newval)
: "memory");
+#elif defined(__x86_64__)
+ asm volatile ("lock; xchgq %0, %1"
+ : "=r" (newval)
+ : "m" (*oldval), "0" (newval)
+ : "memory");
#elif defined(__sgi)
newval = test_and_set (oldval, newval);
#elif defined(__ppc)