diff options
author | Ian Moffett <ian@osmora.org> | 2025-09-16 23:18:03 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-09-16 23:19:30 -0400 |
commit | 8ae23738c78f58bea882dba11080d7052453e71d (patch) | |
tree | 93268fc5e4f8ca1025f882795c5badc0a56ec181 /src/sys/include/arch/amd64/mdcpu.h | |
parent | c5ada50b5e897683c2317591331fa94f3ec1a2b1 (diff) |
kern/amd64: cpu: Make GDT per-cpu to match TSS
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/sys/include/arch/amd64/mdcpu.h')
-rw-r--r-- | src/sys/include/arch/amd64/mdcpu.h | 3 |
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 3fccc42..d72836a 100644 --- a/src/sys/include/arch/amd64/mdcpu.h +++ b/src/sys/include/arch/amd64/mdcpu.h @@ -33,6 +33,7 @@ #include <sys/types.h> #include <sys/cdefs.h> #include <machine/tss.h> +#include <machine/gdt.h> #define md_spinwait() __ASMV("pause") #define md_intoff() __ASMV("cli") @@ -57,6 +58,8 @@ struct mdcore { uint8_t x2apic : 1; struct tss_entry tss; size_t lapic_tmr_freq; + struct gdt_entry gdt[GDT_ENTRY_COUNT]; + struct gdtr gdtr; }; #endif /* !_MACHINE_MDCPU_H_ */ |