]> Zhao Yanbai Git Server - minix.git/commit
atl2: prevent compiler memory access misordering
authorDavid van Moolenbroek <david@minix3.org>
Fri, 4 Nov 2011 13:14:59 +0000 (14:14 +0100)
committerDavid van Moolenbroek <david@minix3.org>
Mon, 7 Nov 2011 13:25:09 +0000 (14:25 +0100)
commitff542f0b27ea6dca0d826d5357176fd15bdea5c1
treecba1384290597192393de3a2ae42e670d155f157
parentc83a90e2f189b4a28517d51d5e4cbe8024383bc2
atl2: prevent compiler memory access misordering

While no problems have been observed in practice yet, modern compilers
may reorder memory access operations, and that could lead to problems
with memory-mapped I/O typically done by drivers. This patch prevents
any potentially problematic reordering by the compiler in the ATL2
driver.

In addition, this patch removes a number of gcc/clang warnings.
drivers/atl2/atl2.c