From: Maciej W. R. <ma...@ds...> - 2001-04-09 10:42:17
|
On Sun, 8 Apr 2001, Ivan Kokshaysky wrote: > Of course. I meant that if you are reading, for example, some status register > in a loop waiting for "ready bit" set, the memory barrier won't help you > to notice this event any faster. Actually you'll notice that *later*, as > "mb" is expensive. I think you need an mb here. To force sychronization with other CPUs. Unless you know you are UP or there is no possibility another CPU may access the relevant device. Of course mbs hit performance but it's a trade off for coherency. -- + Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: ma...@ds..., PGP key available + |