From e11865e4b1e502c9a26d4d52366ba5bb2e92a0a6 Mon Sep 17 00:00:00 2001 From: jhb Date: Mon, 20 Mar 2006 19:39:08 +0000 Subject: 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 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/amd64') 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. */ -- cgit v1.1