diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2018-05-26 18:49:29 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2018-05-26 18:49:29 +0000 |
commit | bdb40e799e2a882e3012425572970e2c40990f6c (patch) | |
tree | 01317f35f25714d46d579f50b602b9a384c79700 | |
parent | 0b1b68ed4049a375093586ac3b31aedac6276c6d (diff) |
CR0_WP is already set in CR0_DEFAULT
-rw-r--r-- | sys/arch/amd64/amd64/cpu.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/arch/amd64/amd64/cpu.c b/sys/arch/amd64/amd64/cpu.c index 6e67b1339ab..45178186f8f 100644 --- a/sys/arch/amd64/amd64/cpu.c +++ b/sys/arch/amd64/amd64/cpu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.c,v 1.118 2018/05/26 18:02:01 guenther Exp $ */ +/* $OpenBSD: cpu.c,v 1.119 2018/05/26 18:49:28 guenther Exp $ */ /* $NetBSD: cpu.c,v 1.1 2003/04/26 18:39:26 fvdl Exp $ */ /*- @@ -514,7 +514,6 @@ cpu_init(struct cpu_info *ci) */ patinit(ci); - lcr0(rcr0() | CR0_WP); cr4 = rcr4() | CR4_DEFAULT; if (ci->ci_feature_sefflags_ebx & SEFF0EBX_SMEP) cr4 |= CR4_SMEP; |