hv: change the param type of mmio_write**

Input parameter of mmio_write64/mmio_write32/mmio_write16/mmio_write8
should be 'void *addr' rather than 'const void *addr' since the object
pointed by 'addr' is modified in these operations.

This patch change the param type of mmio_write** and update its usage
accordingly.

Tracked-On: #861
Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
Reviewed-by: Li, Fei1 <fei1.li@intel.com>
This commit is contained in:
Shiqing Gao
2018-11-30 15:26:34 +08:00
committed by wenlingz
parent daaff43350
commit 11102cfa45
3 changed files with 16 additions and 17 deletions

View File

@@ -85,7 +85,7 @@ static void *map_ioapic(uint64_t ioapic_paddr)
}
static inline uint32_t
ioapic_read_reg32(const void *ioapic_base, const uint32_t offset)
ioapic_read_reg32(void *ioapic_base, const uint32_t offset)
{
uint32_t v;
uint64_t rflags;
@@ -102,8 +102,7 @@ ioapic_read_reg32(const void *ioapic_base, const uint32_t offset)
}
static inline void
ioapic_write_reg32(const void *ioapic_base,
const uint32_t offset, const uint32_t value)
ioapic_write_reg32(void *ioapic_base, const uint32_t offset, const uint32_t value)
{
uint64_t rflags;