diff options
| author | Ian Moffett <ian@osmora.org> | 2025-11-19 19:00:55 -0500 |
|---|---|---|
| committer | Ian Moffett <ian@osmora.org> | 2025-11-19 19:00:55 -0500 |
| commit | d6d40e9ecf2aff5b1e265d26f7651e8633eddabd (patch) | |
| tree | a90fea7b0553ce08a20078ab11049bf789c53c49 /sys/inc/mu/cpu.h | |
| parent | fd43b12a711856e23e010b4b561ecc6aa6940074 (diff) | |
kern/amd64: mp: Load per-core GDT/IDT
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/inc/mu/cpu.h')
| -rw-r--r-- | sys/inc/mu/cpu.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/inc/mu/cpu.h b/sys/inc/mu/cpu.h index 288ba9e..524e42a 100644 --- a/sys/inc/mu/cpu.h +++ b/sys/inc/mu/cpu.h @@ -33,7 +33,8 @@ #include <sys/queue.h> #include <sys/types.h> #include <os/process.h> -#include <md/mcb.h> +#include <md/mcb.h> /* shared */ +#include <md/gdt.h> /* shared */ /* * Processor descriptor @@ -41,12 +42,16 @@ * @id: Logical ID of the processor * @mcb: Machine core block * @curproc: Current process + * @ap_gdt: GDT for APs [unused for BSP] + * @ap_gdtr: GDTR for APs [unused for BSP] * @pqueue: Process queue */ struct cpu_info { uint8_t id; struct mcb mcb; struct process *curproc; + struct gdt_entry ap_gdt[256]; + struct gdtr ap_gdtr; TAILQ_HEAD(, process) pqueue; }; |
