[platform][pc] add support for TSC based clock

-Detect if under KVM hypervisor and read tick rate or
-calibrate tick against PIT
This commit is contained in:
Travis Geiselbrecht
2025-03-30 21:59:39 -07:00
parent 09412c194f
commit 2987f73d08
10 changed files with 276 additions and 37 deletions

View File

@@ -21,6 +21,7 @@ void pic_init(void);
void pic_enable(unsigned int vector, bool enable);
void pic_eoi(unsigned int vector);
void pic_mask_interrupts(void);
uint64_t pit_calibrate_tsc(void);
// local apic
void lapic_init(void);