diff options
| author | Ian Moffett <ian@osmora.org> | 2025-11-19 00:59:51 -0500 |
|---|---|---|
| committer | Ian Moffett <ian@osmora.org> | 2025-11-19 00:59:51 -0500 |
| commit | 298e9130c6c57706453e401975b36461e970460b (patch) | |
| tree | 79479d922e7e1e45c734b235dc78e5d51232d657 /sys/inc | |
| parent | d38730fc2cdb21382eb9f96e70b0078435122d7d (diff) | |
kern/amd64: mp: Keep track of brought up cores
This commit implements storing of processor descriptors per application
processors as well helpers to request a CPU descriptor by index and
better serialization
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/inc')
| -rw-r--r-- | sys/inc/mu/cpu.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/inc/mu/cpu.h b/sys/inc/mu/cpu.h index 7974cf1..05637f5 100644 --- a/sys/inc/mu/cpu.h +++ b/sys/inc/mu/cpu.h @@ -51,6 +51,11 @@ struct cpu_info { struct cpu_info *cpu_self(void); /* + * Get a processor by index + */ +struct cpu_info *cpu_get(uint32_t index); + +/* * Configure a processor core */ void cpu_conf(struct cpu_info *ci); |
