Re: [2.4] gcc3 warns about type-punned pointers ?

From: Willy Tarreau
Date: Sat Aug 30 2003 - 05:04:43 EST


On Sat, Aug 30, 2003 at 08:27:44AM +0200, Antonio Vargas wrote:

> That was my fault for introducing an exchange instruction
> into an assignement discussion, but I don't know of any
> x86 instruction which can load 64bits to memory atomically,
> is there any???

perhaps "pusha", but it will load fare more than you need, and I don't know
if it's lockable.

Some MMX instruction might do it too, although not sure.

Willy

-
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/