diff options
-rw-r--r-- | sys/arch/amd64/amd64/cpu.c | 3 | ||||
-rw-r--r-- | sys/arch/i386/i386/cpu.c | 4 |
2 files changed, 5 insertions, 2 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 } 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. */ |