ptos/amd64: Add task state segment

Signed-off-by: Chloe M <chloe@mensia.org>
This commit is contained in:
2026-07-13 23:27:01 -04:00
parent 4165241b6f
commit bb55a52b69
4 changed files with 258 additions and 0 deletions
+3
View File
@@ -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_ */