mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-05-06 07:26:56 +00:00
If subsequent write is on the same address, maybe the compiler will optimize the access of MMIO memory and only the last write takes effect.In such case it is wrong. For example: mmio_write_long(0x25, addr); mmio_write_long(0x26, addr); mmio_write_long(0x27, addr); After volatile is added, it can avoid the above possible optimization and assure that each write takes effect. Signed-off-by: Zhao Yakui <yakui.zhao@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com> |
||
---|---|---|
.. | ||
guest | ||
apicreg.h | ||
assign.h | ||
cpu_state_tbl.h | ||
cpu.h | ||
cpufeatures.h | ||
cpuid.h | ||
gdt.h | ||
hv_arch.h | ||
idt.h | ||
intr_ctx.h | ||
io.h | ||
ioapic.h | ||
irq.h | ||
lapic.h | ||
mmu.h | ||
msr.h | ||
multiboot.h | ||
softirq.h | ||
timer.h | ||
trusty.h | ||
vmexit.h | ||
vmx.h | ||
vtd.h | ||
zeropage.h |