]> Zhao Yanbai Git Server - minix.git/commit
ahci: prevent compiler memory access misordering
authorDavid van Moolenbroek <david@minix3.org>
Fri, 4 Nov 2011 13:11:34 +0000 (14:11 +0100)
committerDavid van Moolenbroek <david@minix3.org>
Fri, 4 Nov 2011 13:13:24 +0000 (14:13 +0100)
commit532033361430d8e5f0d51294a59ee92cdb4e783b
treee2643454c517c9b478b0b76a50e5f7fe1246752d
parente1d867b686f6c4ed8d729e344df1cb272cbdb10f
ahci: 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 AHCI
driver.
drivers/ahci/ahci.c