From 1f33d530874b2e407c0921ef63e6fda4b2b856c2 Mon Sep 17 00:00:00 2001 From: AlmuHS Date: Tue, 9 Jul 2019 23:47:32 +0200 Subject: fix: check ncpu > 1 before start AP --- kern/startup.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kern/startup.c b/kern/startup.c index e75be5b9..337904ae 100644 --- a/kern/startup.c +++ b/kern/startup.c @@ -245,8 +245,7 @@ void start_kernel_threads(void) * Allow other CPUs to run. */ - start_other_cpus(); - //while(1); + if(ncpu > 1) start_other_cpus(); #endif /* NCPUS > 1 */ /* -- cgit v1.2.3