diff options
| author | Ian Moffett <ian@osmora.org> | 2025-11-19 17:46:15 -0500 |
|---|---|---|
| committer | Ian Moffett <ian@osmora.org> | 2025-11-19 17:46:15 -0500 |
| commit | 295ee614d60e904e4aa0c164090bdef6f9e94aa7 (patch) | |
| tree | 7a4e0d4408544c281174438e06d9efab16242cde /sys/inc | |
| parent | 8050901486090cda7123438f588c80da1fe3fee2 (diff) | |
kern/amd64: cpu: Add cpu_count() function
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 05637f5..d123f43 100644 --- a/sys/inc/mu/cpu.h +++ b/sys/inc/mu/cpu.h @@ -56,6 +56,11 @@ struct cpu_info *cpu_self(void); struct cpu_info *cpu_get(uint32_t index); /* + * Get the number of processors + */ +size_t cpu_count(void); + +/* * Configure a processor core */ void cpu_conf(struct cpu_info *ci); |
