Daniel Verkamp 4a1d47ebea barrier: add compiler barrier and use it in MMIO
spdk_compiler_barrier() prevents the compiler from moving pointer
dereferences across the barrier.

Use this in the MMIO helper functions to ensure that the compiler can't
reorder operations around e.g. hardware register access.

Specifically, this fixes the compiler optimizing out writes to
g_thread_mmio_ctrlr in the NVMe hotplug handling code.

Change-Id: I6b9cec48da0e6d8d75825c28b12ece5251110080
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
2017-02-08 09:20:41 -07:00
..
2017-01-05 11:57:18 -07:00
2016-09-15 15:47:56 -07:00
2016-11-16 10:30:04 -07:00
2016-10-05 11:53:24 -07:00
2016-12-15 13:01:08 -07:00
2016-10-03 08:41:37 -07:00
2017-01-19 09:39:59 -07:00
2016-06-22 15:45:50 -07:00