From 7c4bd33778096b295e424cdfc524b38d555824bb Mon Sep 17 00:00:00 2001 From: Matt Jacob Date: Sat, 25 Sep 1999 18:35:38 +0000 Subject: [PATCH] Fix from Tor so that if we enter the debugger in the tristate going to SMP (other CPUs stopped but SMP mode not really started). Obtained from: Tor.Egge@fast.no --- sys/amd64/amd64/db_interface.c | 2 +- sys/i386/i386/db_interface.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/amd64/amd64/db_interface.c b/sys/amd64/amd64/db_interface.c index cb7f228d671a..23691541920b 100644 --- a/sys/amd64/amd64/db_interface.c +++ b/sys/amd64/amd64/db_interface.c @@ -167,7 +167,7 @@ kdb_trap(type, code, regs) #endif /* VERBOSE_CPUSTOP_ON_DDBBREAK */ /* Restart all the CPUs we previously stopped */ - if (stopped_cpus != other_cpus) { + if (stopped_cpus != other_cpus && smp_started != 0) { db_printf("whoa, other_cpus: 0x%08x, stopped_cpus: 0x%08x\n", other_cpus, stopped_cpus); panic("stop_cpus() failed"); diff --git a/sys/i386/i386/db_interface.c b/sys/i386/i386/db_interface.c index cb7f228d671a..23691541920b 100644 --- a/sys/i386/i386/db_interface.c +++ b/sys/i386/i386/db_interface.c @@ -167,7 +167,7 @@ kdb_trap(type, code, regs) #endif /* VERBOSE_CPUSTOP_ON_DDBBREAK */ /* Restart all the CPUs we previously stopped */ - if (stopped_cpus != other_cpus) { + if (stopped_cpus != other_cpus && smp_started != 0) { db_printf("whoa, other_cpus: 0x%08x, stopped_cpus: 0x%08x\n", other_cpus, stopped_cpus); panic("stop_cpus() failed");