]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[POWERPC] Add "memory" clobber to MMIO accessors
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 28 May 2008 00:18:17 +0000 (10:18 +1000)
committerPaul Mackerras <paulus@samba.org>
Sat, 31 May 2008 07:08:28 +0000 (17:08 +1000)
commitcfab3bdf8292edec19492c89520b1ad11279a648
treedbc3ed8bf7173b102bf844ed8121941b0b2303d8
parent732bee4c859012edf05f3e09b53b68fc332a369d
[POWERPC] Add "memory" clobber to MMIO accessors

Gcc might re-order MMIO accessors vs. surrounding consistent
memory accesses, which is a "bad thing", and could break drivers.
This fixes it by adding a "memory" clobber to the MMIO accessors,
which should prevent gcc from doing that reordering.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
include/asm-powerpc/io.h