mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-02 09:25:17 +00:00
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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user