Re: [PATCH 1/10] Cr4 is valid on some 486s

From: Linus Torvalds
Date: Sun Nov 13 2005 - 14:36:55 EST




On Sun, 13 Nov 2005, Alan Cox wrote:
>
> On Sul, 2005-11-13 at 20:00 +0100, Andi Kleen wrote:
> > It's a bad hack anyways. Better would be probably to use a uncached WC write.
> > I would rather use that.
>
> I'm not clear that anything but lock operations have the required
> guarantee of atomicity relative to bus masters which are not processors.
> Especially so on intel.

The thing is, we wouldn't ever remove _all_ lock prefixes. Only the ones
that already depend on SMP.

So the memory barriers etc that have lock prefixes even on UP would be
totally untouched.

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