bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cache coherency in DMA and MMIO


From: Samuel Thibault
Subject: Re: cache coherency in DMA and MMIO
Date: Sat, 24 Apr 2010 14:12:28 +0200
User-agent: Mutt/1.5.12-2006-07-14

Da Zheng, le Sat 24 Apr 2010 19:39:58 +0800, a écrit :
> If a variable doesn't have the volatile qualifier and If it is in a register 
> at
> the moment it is modified by DMA, the value in the register is out-of-date.

Yes, that's why the DMA order must use compiler memory barriers to
prevent that: asm("":::"memory"). But that's all it needs to do,
provided the DMA chip handles cache coherency.

Samuel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]