diff options
author | 2014-11-27 17:35:12 +0000 | |
---|---|---|
committer | 2014-11-27 17:35:12 +0000 | |
commit | b73ba79bf569cb5fca2e60d599afa30d8a7f368b (patch) | |
tree | 63bd2e865af412e795ff25807cb7efa748dfc07d | |
parent | Fix the obsolete .Db (toggle debug mode) macro to ignore its arguments (diff) | |
download | wireguard-openbsd-b73ba79bf569cb5fca2e60d599afa30d8a7f368b.tar.xz wireguard-openbsd-b73ba79bf569cb5fca2e60d599afa30d8a7f368b.zip |
Missing comparison caused NX to always be enabled during boot, even on CPUs
that may have had it disabled in BIOS.
ok deraadt@
-rw-r--r-- | sys/arch/amd64/amd64/locore.S | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/amd64/amd64/locore.S b/sys/arch/amd64/amd64/locore.S index a860c0bec71..eeecb1157b1 100644 --- a/sys/arch/amd64/amd64/locore.S +++ b/sys/arch/amd64/amd64/locore.S @@ -1,4 +1,4 @@ -/* $OpenBSD: locore.S,v 1.59 2014/11/20 08:56:52 mlarkin Exp $ */ +/* $OpenBSD: locore.S,v 1.60 2014/11/27 17:35:12 mlarkin Exp $ */ /* $NetBSD: locore.S,v 1.13 2004/03/25 18:33:17 drochner Exp $ */ /* @@ -598,7 +598,8 @@ cont: xorl %eax,%eax /* XXX */ orl $(EFER_LME|EFER_SCE),%eax movl RELOC((pg_nx + 4)), %ebx - jz write_efer + cmpl $0, %ebx + je write_efer orl $(EFER_NXE), %eax write_efer: wrmsr |