Page MenuHomeFreeBSD

D57003.id177839.diff
No OneTemporary

D57003.id177839.diff

diff --git a/sys/riscv/riscv/mp_machdep.c b/sys/riscv/riscv/mp_machdep.c
--- a/sys/riscv/riscv/mp_machdep.c
+++ b/sys/riscv/riscv/mp_machdep.c
@@ -172,6 +172,11 @@
while (!atomic_load_int(&aps_ready))
__asm __volatile("wfi");
+ /*
+ * Flush the TLB to avoid spurious kernel page faults
+ * on implementations that cache invalid entries.
+ */
+ sfence_vma();
/* Initialize curthread */
KASSERT(PCPU_GET(idlethread) != NULL, ("no idle thread"));
pcpup->pc_curthread = pcpup->pc_idlethread;

File Metadata

Mime Type
text/plain
Expires
Sat, Aug 29, 4:10 AM (18 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33092611
Default Alt Text
D57003.id177839.diff (505 B)

Event Timeline