[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnumach] fix smp 1
From: |
gfleury |
Subject: |
[gnumach] fix smp 1 |
Date: |
Sat, 11 Jan 2025 10:33:30 +0200 |
---
i386/i386/mp_desc.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/i386/i386/mp_desc.c b/i386/i386/mp_desc.c
index c90600f..e67aa76 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);
--
2.39.5
- [gnumach] fix smp 1,
gfleury <=