From 764db616aed7d71c4c785659b6398a8bfcaca42e Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Mon, 26 Feb 2024 00:17:27 -0500 Subject: kernel/amd64: cpu_mp: Allow single core processing Signed-off-by: Ian Moffett --- sys/arch/amd64/amd64/cpu_mp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys') diff --git a/sys/arch/amd64/amd64/cpu_mp.c b/sys/arch/amd64/amd64/cpu_mp.c index b00e34e..36b09bf 100644 --- a/sys/arch/amd64/amd64/cpu_mp.c +++ b/sys/arch/amd64/amd64/cpu_mp.c @@ -93,8 +93,8 @@ ap_bootstrap(struct cpu_info *ci) cpu_init_counter = resp->cpu_count - 1; if (resp->cpu_count == 1) { - /* TODO: Allow single core processing */ - panic("System only has 1 core!\n"); + KINFO("CPU has 1 core, no APs to bootstrap...\n"); + return; } KINFO("Bootstrapping %d cores...\n", cpu_init_counter); -- cgit v1.2.3