stos/amd64: lapic: Calibrate the Local APIC timer

Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
Chloe M.
2026-06-27 17:20:25 +00:00
parent d7904ea894
commit e966cec4cd
2 changed files with 57 additions and 4 deletions
+6 -4
View File
@@ -15,16 +15,18 @@
* The machine-core block contains machine specific
* processor information
*
* @ModelId: Processor model ID
* @FamilyId: Processor family ID
* @LapicBase: Local APIC MMIO base
* @HasX2Apic: If set, x2APIC is supported
* @ModelId: Processor model ID
* @FamilyId: Processor family ID
* @LapicBase: Local APIC MMIO base
* @HasX2Apic: If set, x2APIC is supported
* @LapicTmrFreq: Local APIC timer frequency
*/
typedef struct {
UCHAR ModelId;
USHORT FamilyId : 12;
VOID *LapicBase;
UCHAR HasX2Apic : 1;
USIZE LapicTmrFreq;
} MCB;
#endif /* !_MACHINE_MCB_H_ */