mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-23 09:23:00 +01:00
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:
parent
d6a0e38a1b
commit
7c4bd33778
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=51659
@ -167,7 +167,7 @@ kdb_trap(type, code, regs)
|
|||||||
#endif /* VERBOSE_CPUSTOP_ON_DDBBREAK */
|
#endif /* VERBOSE_CPUSTOP_ON_DDBBREAK */
|
||||||
|
|
||||||
/* Restart all the CPUs we previously stopped */
|
/* 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",
|
db_printf("whoa, other_cpus: 0x%08x, stopped_cpus: 0x%08x\n",
|
||||||
other_cpus, stopped_cpus);
|
other_cpus, stopped_cpus);
|
||||||
panic("stop_cpus() failed");
|
panic("stop_cpus() failed");
|
||||||
|
@ -167,7 +167,7 @@ kdb_trap(type, code, regs)
|
|||||||
#endif /* VERBOSE_CPUSTOP_ON_DDBBREAK */
|
#endif /* VERBOSE_CPUSTOP_ON_DDBBREAK */
|
||||||
|
|
||||||
/* Restart all the CPUs we previously stopped */
|
/* 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",
|
db_printf("whoa, other_cpus: 0x%08x, stopped_cpus: 0x%08x\n",
|
||||||
other_cpus, stopped_cpus);
|
other_cpus, stopped_cpus);
|
||||||
panic("stop_cpus() failed");
|
panic("stop_cpus() failed");
|
||||||
|
Loading…
Reference in New Issue
Block a user