Re: ix86 Atomic ops during DMA...

From: Bart Hartgers
Date: Mon Aug 09 2004 - 07:32:43 EST


On 9 Aug, Richard B. Johnson wrote:

How about:

lock andl (%ebx),0xffffffff

Not sure 100% if I have the arguments in the right order ;-).


> I need...
>
> movl (%ebx), %eax # Read status from register in ebx
> movl %eax, (%ebx) # Write it back
>
> ..to occur together without the bus being taken away by a DMA
> operation until these two instructions are complete.

--
Bart Hartgers - TUE Eindhoven
http://plasimo.phys.tue.nl/bart/contact/
-
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/