summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-08-18 05:02:14 +0000
committerIan Moffett <ian@osmora.org>2025-08-18 05:02:14 +0000
commita871801e1e38db8e8ca3a662e7e4ecf08c7c3297 (patch)
treec199a5ae66cb90e3b17e29a0eea3adc2b2cea0c5 /sys
parenta834a3a7774a9db53664e64422f82f2de50c8712 (diff)
kernel/amd64: cpu: Fix uninitialized variableexpt
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/amd64/amd64/machdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arch/amd64/amd64/machdep.c b/sys/arch/amd64/amd64/machdep.c
index 3338caa..94b2d18 100644
--- a/sys/arch/amd64/amd64/machdep.c
+++ b/sys/arch/amd64/amd64/machdep.c
@@ -449,7 +449,7 @@ void
cpu_halt_all(void)
{
struct cpu_info *ci;
- uint32_t ncpu;
+ uint32_t ncpu = cpu_count();
/*
* If we have no current 'cpu_info' structure set,