Memory cards
MMIO needs volatile access and barriers
confidence: highupdated: 2026-11-25status: activehardwaremmiobarriers
Claim#
A register read can be cached or reordered. A volatile access plus a barrier enforces the order the device expects.
Test#
Write a register then read the status. Check the generated instructions and the barrier.
Proof#
An access order that matches the datasheet.
Failure modes#
A plain pointer read is optimized away. A missing barrier lets the write arrive late.