diff options
-rw-r--r-- | sys/amd64/amd64/io_apic.c | 2 | ||||
-rw-r--r-- | sys/amd64/amd64/local_apic.c | 2 | ||||
-rw-r--r-- | sys/i386/i386/io_apic.c | 2 | ||||
-rw-r--r-- | sys/i386/i386/local_apic.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/sys/amd64/amd64/io_apic.c b/sys/amd64/amd64/io_apic.c index 19d4f40..5ea81ec 100644 --- a/sys/amd64/amd64/io_apic.c +++ b/sys/amd64/amd64/io_apic.c @@ -447,7 +447,7 @@ ioapic_create(uintptr_t addr, int32_t apic_id, int intbase) uint32_t value; /* Map the register window so we can access the device. */ - apic = (ioapic_t *)pmap_mapdev(addr, IOAPIC_MEM_REGION); + apic = pmap_mapdev(addr, IOAPIC_MEM_REGION); mtx_lock_spin(&icu_lock); value = ioapic_read(apic, IOAPIC_VER); mtx_unlock_spin(&icu_lock); diff --git a/sys/amd64/amd64/local_apic.c b/sys/amd64/amd64/local_apic.c index 2e6a220..384de39 100644 --- a/sys/amd64/amd64/local_apic.c +++ b/sys/amd64/amd64/local_apic.c @@ -208,7 +208,7 @@ lapic_init(uintptr_t addr) /* Map the local APIC and setup the spurious interrupt handler. */ KASSERT(trunc_page(addr) == addr, ("local APIC not aligned on a page boundary")); - lapic = (lapic_t *)pmap_mapdev(addr, sizeof(lapic_t)); + lapic = pmap_mapdev(addr, sizeof(lapic_t)); setidt(APIC_SPURIOUS_INT, IDTVEC(spuriousint), SDT_SYSIGT, SEL_KPL, 0); /* Perform basic initialization of the BSP's local APIC. */ diff --git a/sys/i386/i386/io_apic.c b/sys/i386/i386/io_apic.c index 78135ba..ba51ef5 100644 --- a/sys/i386/i386/io_apic.c +++ b/sys/i386/i386/io_apic.c @@ -446,7 +446,7 @@ ioapic_create(uintptr_t addr, int32_t apic_id, int intbase) uint32_t value; /* Map the register window so we can access the device. */ - apic = (ioapic_t *)pmap_mapdev(addr, IOAPIC_MEM_REGION); + apic = pmap_mapdev(addr, IOAPIC_MEM_REGION); mtx_lock_spin(&icu_lock); value = ioapic_read(apic, IOAPIC_VER); mtx_unlock_spin(&icu_lock); diff --git a/sys/i386/i386/local_apic.c b/sys/i386/i386/local_apic.c index 9814f28..c26eeab 100644 --- a/sys/i386/i386/local_apic.c +++ b/sys/i386/i386/local_apic.c @@ -208,7 +208,7 @@ lapic_init(uintptr_t addr) /* Map the local APIC and setup the spurious interrupt handler. */ KASSERT(trunc_page(addr) == addr, ("local APIC not aligned on a page boundary")); - lapic = (lapic_t *)pmap_mapdev(addr, sizeof(lapic_t)); + lapic = pmap_mapdev(addr, sizeof(lapic_t)); setidt(APIC_SPURIOUS_INT, IDTVEC(spuriousint), SDT_SYS386IGT, SEL_KPL, GSEL(GCODE_SEL, SEL_KPL)); |