deactivate apic timer when globally disabled

This commit is contained in:
Stanislav Shwartsman 2020-05-17 19:03:39 +00:00
parent da169c0044
commit f97b20ddce

View File

@ -303,6 +303,11 @@ void bx_local_apic_c::set_base(bx_phy_address newbase)
for(int i=0; i<APIC_LVT_ENTRIES; i++) {
lvt[i] = 0x10000; // all LVT are masked
}
if(timer_active) {
bx_pc_system.deactivate_timer(timer_handle);
timer_active = 0;
}
}
}