On Jun 21, 2007, at 7:31 AM, David Woodhouse wrote:
On Wed, 2007-06-20 at 18:42 +0200, Alexander Graf wrote:
implements futexes (this is mostly done by David Woodhouse as well,
FUTEX_WAKE_OP done by me)
#ifdef BSWAP_NEEDED, only FUTEX_OP_CMP_EQ and FUTEX_OP_CMP_NE will
work
as expected. If we want to do the rest then we'll need to implement
FUTEX_OP_CMP_LT_WRONGENDIAN &c in the kernel.
Tell me if I'm wrong there, but as far as I could tell from the
documentation by Ulrich Drapper (http://people.redhat.com/drepper/
futex.pdf) and the kernel source, FUTEX_WAKE_OP can be easily
expressed as two conditional FUTEX_WAKE calls.
Because the only real endianness problems that exist are in the
conditional checking, we should be on the safe side if that is done
in qemu (which is what I was implementing).
Alex