summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2010-04-08 19:28:32 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2010-04-08 19:28:32 +0000
commit828acf020e500a9a723288e018702a650519d564 (patch)
tree007188b7dff526565705b3ad7d95bfdd223fd846 /sys/arch/amd64
parentedc3da320cf80afeebc79e92926e15312db50609 (diff)
Since we only start doing tlb shootdowns after setting the CPUF_RUNNING flag,
flush the TLB immediately after doing so, to make sure there are no stale TLB entries. Suggested by art@ ok art@, oga@, deraadt@, weingart@
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r--sys/arch/amd64/amd64/cpu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/amd64/amd64/cpu.c b/sys/arch/amd64/amd64/cpu.c
index 2a67d8f4474..e57aafa9055 100644
--- a/sys/arch/amd64/amd64/cpu.c
+++ b/sys/arch/amd64/amd64/cpu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.c,v 1.30 2010/04/07 06:33:06 kettenis Exp $ */
+/* $OpenBSD: cpu.c,v 1.31 2010/04/08 19:27:40 kettenis Exp $ */
/* $NetBSD: cpu.c,v 1.1 2003/04/26 18:39:26 fvdl Exp $ */
/*-
@@ -375,6 +375,7 @@ cpu_init(struct cpu_info *ci)
#ifdef MULTIPROCESSOR
ci->ci_flags |= CPUF_RUNNING;
+ tlbflush();
#endif
}