---
 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


Reply via email to