mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 17:22:46 -04:00
Drop some unneeded casts since we program the kernel in C rather than C++.
This commit is contained in:
parent
79d8404261
commit
aef8cd01ed
4 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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. */
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue