summaryrefslogtreecommitdiff
path: root/src/sys/include/arch/amd64/mdcpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sys/include/arch/amd64/mdcpu.h')
-rw-r--r--src/sys/include/arch/amd64/mdcpu.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sys/include/arch/amd64/mdcpu.h b/src/sys/include/arch/amd64/mdcpu.h
index 0a39eb4..1503adb 100644
--- a/src/sys/include/arch/amd64/mdcpu.h
+++ b/src/sys/include/arch/amd64/mdcpu.h
@@ -32,6 +32,7 @@
#include <sys/types.h>
#include <sys/cdefs.h>
+#include <machine/tss.h>
#define md_spinwait() __ASMV("pause")
#define md_intoff() __ASMV("cli")
@@ -46,12 +47,14 @@
* @cr3: CR3 register value (PML<n> phys)
* @lapic_base: LAPIC register interface base
* @x2apic: Has the x2APIC? Is 1 if true
+ * @tss: Task state segment for this core
*/
struct mdcore {
uint32_t apic_id;
uint64_t cr3;
void *lapic_base;
uint8_t x2apic : 1;
+ struct tss_entry tss;
};
#endif /* !_MACHINE_MDCPU_H_ */