stos/amd64: cpu: Add LAPIC driver + MCB in KPCR
Signed-off-by: Chloe M <chloe@mensia.org>
This commit is contained in:
@@ -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_ */
|
||||
Reference in New Issue
Block a user