summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2006-03-20 19:39:08 +0000
committerjhb <jhb@FreeBSD.org>2006-03-20 19:39:08 +0000
commite11865e4b1e502c9a26d4d52366ba5bb2e92a0a6 (patch)
tree45345424139f69146e3b4db2eff9e648ea4d31d2 /sys/amd64
parent0c0762be80841d121beee579617129c8c150d875 (diff)
downloadFreeBSD-src-e11865e4b1e502c9a26d4d52366ba5bb2e92a0a6.zip
FreeBSD-src-e11865e4b1e502c9a26d4d52366ba5bb2e92a0a6.tar.gz
Drop some unneeded casts since we program the kernel in C rather than C++.
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/io_apic.c2
-rw-r--r--sys/amd64/amd64/local_apic.c2
2 files changed, 2 insertions, 2 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. */
OpenPOWER on IntegriCloud