I'll take a look.
> > Ok, I did know m68k can do it, but wasn't sure about all other arches :)
>
> Yep. Everyone architecture I know of - and certainly all that Linux
> support - can do atomic read/writes to a word. Thinking about it, it
> would be odd if not (two writes to a single word interleaving?). There
> are places this assumption is used.
>
> Anything more complicated, of course, needs atomic operations or locks.
"word == basic unit of transfer from/to memory" on your reasoning, I suppose.
I'm coding this now, hope I can post a basic implementation.
Greets, Antonio.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/