From 295ee614d60e904e4aa0c164090bdef6f9e94aa7 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Wed, 19 Nov 2025 17:46:15 -0500 Subject: kern/amd64: cpu: Add cpu_count() function Signed-off-by: Ian Moffett --- sys/arch/amd64/cpu/mp.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sys/arch/amd64') diff --git a/sys/arch/amd64/cpu/mp.c b/sys/arch/amd64/cpu/mp.c index df4798d..a84648b 100644 --- a/sys/arch/amd64/cpu/mp.c +++ b/sys/arch/amd64/cpu/mp.c @@ -373,6 +373,12 @@ cpu_get(uint32_t index) return cpu_list[index]; } +size_t +cpu_count(void) +{ + return ap_count + 1; +} + void cpu_start_aps(struct cpu_info *ci) { -- cgit v1.2.3