Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177587941
D9786.1794804277.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
886 B
Referenced Files
None
Subscribers
None
D9786.1794804277.diff
View Options
Index: head/sys/x86/x86/mp_x86.c
===================================================================
--- head/sys/x86/x86/mp_x86.c
+++ head/sys/x86/x86/mp_x86.c
@@ -45,6 +45,7 @@
#ifdef GPROF
#include <sys/gmon.h>
#endif
+#include <sys/kdb.h>
#include <sys/kernel.h>
#include <sys/ktr.h>
#include <sys/lock.h>
@@ -1269,6 +1270,12 @@
CPU_CLR_ATOMIC(cpu, &started_cpus);
CPU_CLR_ATOMIC(cpu, &stopped_cpus);
+ /*
+ * We don't broadcast TLB invalidations to other CPUs when they are
+ * stopped. Hence, we clear the TLB before resuming.
+ */
+ invltlb_glob();
+
#if defined(__amd64__) && defined(DDB)
amd64_db_resume_dbreg();
#endif
@@ -1427,6 +1434,10 @@
uint32_t generation;
int cpu;
+ /* It is not necessary to signal other CPUs while in the debugger. */
+ if (kdb_active || panicstr != NULL)
+ return;
+
/*
* Check for other cpus. Return if none.
*/
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 16, 4:44 AM (32 m, 16 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41745558
Default Alt Text
D9786.1794804277.diff (886 B)
Attached To
Mode
D9786: Fix "smp_targeted_tlb_shootdown: interrupts disabled" panics
Attached
Detach File
Event Timeline