Re: [PATCH 5/6] MN10300: Add the MN10300/AM33 architecture to the kernel [try #5]

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: David Howells <dhowells@...>
Cc: <dhowells@...>, Andrew Morton <akpm@...>, <torvalds@...>, <linux-kernel@...>, <linux-am33-list@...>
Date: Sunday, November 11, 2007 - 11:18 am

> So you would say change the global h/w register variables[*] to be addresses

Ok so these are not addresses but magic registers in the processor ? Then
I guess volatile makes complete sense.


For real DMA the dma_ APIs keep coherency


For PIO (virtual DMA or otherwise) the locking does that. Because
spin_unlock and spin_lock are compiler barriers the need to use volatile
shouldn't normally be there. If you are doing it via asm without locks
then I would expect atomic_t because the sematics of volatile are
horribly vague on their own ?

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 5/6] MN10300: Add the MN10300/AM33 architecture t..., Alan Cox, (Sun Nov 11, 11:18 am)