aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgfleury <gfleury@disroot.org>2025-01-11 10:33:30 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2025-01-11 11:40:20 +0100
commitd197bdc629b2ce5e1b4377e74fb0b63b0bbe5a8e (patch)
tree21abd47e83457e7d44ac5cfb2b0d993ecfca0b1c
parentfc494bfe3fb6363e1077dc035eb119970d84a9d1 (diff)
downloadgnumach-d197bdc629b2ce5e1b4377e74fb0b63b0bbe5a8e.tar.gz
gnumach-d197bdc629b2ce5e1b4377e74fb0b63b0bbe5a8e.tar.bz2
gnumach-d197bdc629b2ce5e1b4377e74fb0b63b0bbe5a8e.zip
Fix boot with smp 1
Message-ID: <20250111083330.26863-1-gfleury@disroot.org>
-rw-r--r--i386/i386/mp_desc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/i386/i386/mp_desc.c b/i386/i386/mp_desc.c
index c90600f2..e67aa767 100644
--- a/i386/i386/mp_desc.c
+++ b/i386/i386/mp_desc.c
@@ -279,6 +279,9 @@ start_other_cpus(void)
{
int ncpus = smp_get_numcpus();
+ if (ncpus == 1)
+ return;
+
//Copy cpu initialization assembly routine
memcpy((void*) phystokv(apboot_addr), (void*) &apboot,
(uint32_t)&apbootend - (uint32_t)&apboot);