From aef8cd01ed80b58363c4e37a783ce9d9d35bdfba Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Mon, 20 Mar 2006 19:39:08 +0000 Subject: [PATCH] Drop some unneeded casts since we program the kernel in C rather than C++. --- sys/amd64/amd64/io_apic.c | 2 +- sys/amd64/amd64/local_apic.c | 2 +- sys/i386/i386/io_apic.c | 2 +- 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 19d4f40d29a..5ea81eca4fe 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 2e6a2204166..384de391164 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 78135bab8ce..ba51ef574d9 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 9814f288fbe..c26eeabd644 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));