aboutsummaryrefslogtreecommitdiff
path: root/sys/include/arch/amd64/cpu.h
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2023-12-11 22:46:45 -0500
committerIan Moffett <ian@osmora.org>2023-12-11 22:46:45 -0500
commit30495d6f06108864c151e744ec1aad98e70c3334 (patch)
treeb11dad71341da6ccf5d5a3107f2d6c623bacf96a /sys/include/arch/amd64/cpu.h
parentc9a79b6dc5deb2294e8c125bc18413408a7cee68 (diff)
kernel/amd64: Add Task State Segment
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include/arch/amd64/cpu.h')
-rw-r--r--sys/include/arch/amd64/cpu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/include/arch/amd64/cpu.h b/sys/include/arch/amd64/cpu.h
index e93e8a2..9645aac 100644
--- a/sys/include/arch/amd64/cpu.h
+++ b/sys/include/arch/amd64/cpu.h
@@ -32,6 +32,7 @@
#include <sys/types.h>
#include <sys/spinlock.h>
+#include <machine/tss.h>
#define this_cpu() amd64_this_cpu()
#define get_bsp() amd64_get_bsp()
@@ -53,6 +54,7 @@ struct cpu_info {
/* AMD64 */
volatile size_t lapic_tmr_freq;
+ volatile struct tss_entry *tss;
};
struct cpu_info *amd64_this_cpu(void);