Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F164642166
D17687.id49566.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
921 B
Referenced Files
None
Subscribers
None
D17687.id49566.diff
View Options
Index: sys/kern/subr_kdb.c
===================================================================
--- sys/kern/subr_kdb.c
+++ sys/kern/subr_kdb.c
@@ -652,9 +652,7 @@
struct kdb_dbbe *be;
register_t intr;
int handled;
-#ifdef SMP
int did_stop_cpus;
-#endif
be = kdb_dbbe;
if (be == NULL || be->dbbe_trap == NULL)
@@ -666,16 +664,17 @@
intr = intr_disable();
-#ifdef SMP
if (!SCHEDULER_STOPPED()) {
+#ifdef SMP
other_cpus = all_cpus;
CPU_NAND(&other_cpus, &stopped_cpus);
CPU_CLR(PCPU_GET(cpuid), &other_cpus);
stop_cpus_hard(other_cpus);
+#endif
+ curthread->td_stopsched = 1;
did_stop_cpus = 1;
} else
did_stop_cpus = 0;
-#endif
kdb_active++;
@@ -703,12 +702,13 @@
kdb_active--;
-#ifdef SMP
if (did_stop_cpus) {
+ curthread->td_stopsched = 0;
+#ifdef SMP
CPU_AND(&other_cpus, &stopped_cpus);
restart_cpus(other_cpus);
- }
#endif
+ }
intr_restore(intr);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Aug 3, 8:07 PM (22 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35915410
Default Alt Text
D17687.id49566.diff (921 B)
Attached To
Mode
D17687: Always stop the scheduler when entering kdb
Attached
Detach File
Event Timeline
Log In to Comment