ptos/amd64: Add task state segment
Signed-off-by: Chloe M <chloe@mensia.org>
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
#define _MACHINE_MCB_H_ 1
|
||||
|
||||
#include <ptdef.h>
|
||||
#include <machine/tss.h>
|
||||
|
||||
/*
|
||||
* The machine core block contains MD processor information
|
||||
@@ -17,11 +18,13 @@
|
||||
* @LapicBase: Local APIC MMIO base
|
||||
* @HasX2Apic: Has an x2APIC unit
|
||||
* @LapicTmrFreq: Local APIC timer frequency
|
||||
* @Tss: Task state segment
|
||||
*/
|
||||
typedef struct {
|
||||
VOID *LapicBase;
|
||||
UCHAR HasX2Apic : 1;
|
||||
USIZE LapicTmrFreq;
|
||||
TSS_ENTRY *Tss;
|
||||
} MCB;
|
||||
|
||||
#endif /* !_MACHINE_MCB_H_ */
|
||||
|
||||
Reference in New Issue
Block a user