diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2010-04-08 19:28:32 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2010-04-08 19:28:32 +0000 |
commit | 828acf020e500a9a723288e018702a650519d564 (patch) | |
tree | 007188b7dff526565705b3ad7d95bfdd223fd846 /sys/arch/i386 | |
parent | edc3da320cf80afeebc79e92926e15312db50609 (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/i386')
-rw-r--r-- | sys/arch/i386/i386/cpu.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/i386/i386/cpu.c b/sys/arch/i386/i386/cpu.c index 36b1f217f6d..81b191a72b7 100644 --- a/sys/arch/i386/i386/cpu.c +++ b/sys/arch/i386/i386/cpu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.c,v 1.36 2010/04/01 19:48:50 kettenis Exp $ */ +/* $OpenBSD: cpu.c,v 1.37 2010/04/08 19:28:31 kettenis Exp $ */ /* $NetBSD: cpu.c,v 1.1.2.7 2000/06/26 02:04:05 sommerfeld Exp $ */ /*- @@ -322,6 +322,8 @@ cpu_init(struct cpu_info *ci) lcr4(rcr4() | CR4_PGE); /* enable global TLB caching */ ci->ci_flags |= CPUF_RUNNING; + tlbflush(); + /* * If we have FXSAVE/FXRESTOR, use them. */ |