mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 00:14:32 -08:00
APIC timer calibration
Now the APIC timer is calibrated against the PIT, and the interval for timer_enable takes a number of microseconds instead of raw ticks and a divisor.
This commit is contained in:
@@ -51,10 +51,6 @@ acpi_table_header::validate(uint32_t expected_type) const
|
||||
|
||||
void irq2_callback(void *)
|
||||
{
|
||||
console *cons = console::get();
|
||||
cons->set_color(11);
|
||||
cons->puts(".");
|
||||
cons->set_color();
|
||||
}
|
||||
|
||||
void irq4_callback(void *)
|
||||
@@ -212,8 +208,6 @@ device_manager::load_apic(const acpi_apic *apic)
|
||||
p += length;
|
||||
}
|
||||
|
||||
// m_lapic->enable_timer(isr::isrTimer, 128, 3000000);
|
||||
|
||||
for (uint8_t i = 0; i < m_ioapics[0]->get_num_gsi(); ++i) {
|
||||
switch (i) {
|
||||
case 2: break;
|
||||
@@ -221,7 +215,6 @@ device_manager::load_apic(const acpi_apic *apic)
|
||||
}
|
||||
}
|
||||
|
||||
m_ioapics[0]->dump_redirs();
|
||||
m_lapic->enable();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user