diff options
author | AlmuHS <almuhs@github.com> | 2019-07-09 23:47:32 +0200 |
---|---|---|
committer | AlmuHS <almuhs@github.com> | 2019-07-09 23:47:32 +0200 |
commit | 1f33d530874b2e407c0921ef63e6fda4b2b856c2 (patch) | |
tree | 345b75fc0cdc8950683f87d42eb926697c1bbc9c | |
parent | 046f701ff07efd7f9dbe92fba97d16b5121ff7f5 (diff) |
fix: check ncpu > 1 before start AP
-rw-r--r-- | kern/startup.c | 3 |
1 files changed, 1 insertions, 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 */ /* |