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
This commit is contained in:
Matt Jacob 1999-09-25 18:35:38 +00:00
parent d6a0e38a1b
commit 7c4bd33778
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=51659
2 changed files with 2 additions and 2 deletions
sys
amd64/amd64
i386/i386

View File

@ -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");

View File

@ -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");