Re: atomic RAM ?

From: Pavel Machek
Date: Mon Apr 12 2010 - 08:54:19 EST


Hi!

> OTOH, to do FUTEX in full (MMU) - Linux, atomic operations are
> definitively necessary, as in Userland you can't disable the interrupt
> without a Kernel call (which to avoid FUTEX is all about.) Currently the

You could create unpriviledged 'disable interrupts for 10
instructions' and 'test if interrupts are still disabled'
instructions, and base your mutex implementation on that.

But you'll have to stop calling it futex at that point...

Or you could just optimize syscalls to be really fast...
Pavel

--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/