remove compiler warnings
This commit is contained in:
parent
6f092641ba
commit
ec5c78fbb3
1 changed files with 2 additions and 2 deletions
|
@ -256,7 +256,7 @@ int apic_calibration(void)
|
|||
return -ENXIO;
|
||||
|
||||
if (ioapic)
|
||||
ioapic = map_region(0 /*(size_t)ioapic*/, (size_t)ioapic, 1, MAP_KERNEL_SPACE|MAP_NO_CACHE);
|
||||
ioapic = (ioapic_t*) map_region(0 /*(size_t)ioapic*/, (size_t) ioapic, 1, MAP_KERNEL_SPACE|MAP_NO_CACHE);
|
||||
|
||||
old = get_clock_tick();
|
||||
|
||||
|
@ -298,7 +298,7 @@ int apic_calibration(void)
|
|||
return -ENXIO;
|
||||
|
||||
if (ioapic)
|
||||
ioapic = map_region(0 /*(size_t)ioapic*/, (size_t)ioapic, 1, MAP_KERNEL_SPACE|MAP_NO_CACHE);
|
||||
ioapic = (ioapic_t*) map_region(0 /*(size_t)ioapic*/, (size_t)ioapic, 1, MAP_KERNEL_SPACE|MAP_NO_CACHE);
|
||||
|
||||
lapic_write(APIC_DCR, 0xB); // set it to 1 clock increments
|
||||
lapic_write(APIC_LVT_T, 0x2007B); // connects the timer to 123 and enables it
|
||||
|
|
Loading…
Add table
Reference in a new issue