diff options
author | jhb <jhb@FreeBSD.org> | 2006-03-20 19:39:08 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2006-03-20 19:39:08 +0000 |
commit | e11865e4b1e502c9a26d4d52366ba5bb2e92a0a6 (patch) | |
tree | 45345424139f69146e3b4db2eff9e648ea4d31d2 | |
parent | 0c0762be80841d121beee579617129c8c150d875 (diff) | |
download | FreeBSD-src-e11865e4b1e502c9a26d4d52366ba5bb2e92a0a6.zip FreeBSD-src-e11865e4b1e502c9a26d4d52366ba5bb2e92a0a6.tar.gz |
Drop some unneeded casts since we program the kernel in C rather than C++.
-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)); |