stos/amd64: cpu: Add LAPIC driver + MCB in KPCR

Signed-off-by: Chloe M <chloe@mensia.org>
This commit is contained in:
2026-07-13 22:25:23 -04:00
parent 533483a367
commit 4165241b6f
6 changed files with 490 additions and 3 deletions
+27
View File
@@ -0,0 +1,27 @@
/*
* Copyright (c) 2026, Chloe M.
* Provided under the BSD-3 clause.
*
* Description: Machine core block
* Author: Chloe M.
*/
#ifndef _MACHINE_MCB_H_
#define _MACHINE_MCB_H_ 1
#include <ptdef.h>
/*
* The machine core block contains MD processor information
*
* @LapicBase: Local APIC MMIO base
* @HasX2Apic: Has an x2APIC unit
* @LapicTmrFreq: Local APIC timer frequency
*/
typedef struct {
VOID *LapicBase;
UCHAR HasX2Apic : 1;
USIZE LapicTmrFreq;
} MCB;
#endif /* !_MACHINE_MCB_H_ */