diff options
author | Ian Moffett <ian@osmora.org> | 2024-06-08 18:19:51 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-06-08 18:19:51 -0400 |
commit | 55845113211400c9b1657ec3ce72b06a05efac4e (patch) | |
tree | da6030d824feeec4885f222c66ffdae988d70472 /sys/include/arch | |
parent | 71f56e9075d34fa560b23a448d58731c270aa050 (diff) |
kernel/amd64: Prepare for scheduler
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include/arch')
-rw-r--r-- | sys/include/arch/amd64/cpu.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/include/arch/amd64/cpu.h b/sys/include/arch/amd64/cpu.h index 84391ba..b5420a6 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/cdefs.h> +#include <sys/proc.h> #include <machine/tss.h> struct cpu_info { @@ -39,10 +40,13 @@ struct cpu_info { uint8_t has_x2apic : 1; size_t lapic_tmr_freq; struct tss_entry *tss; + struct proc *curtd; }; void cpu_startup(struct cpu_info *ci); struct cpu_info *this_cpu(void); +void mp_bootstrap_aps(struct cpu_info *ci); + extern struct cpu_info g_bsp_ci; #endif /* !_MACHINE_CPU_H_ */ |