[syslinux:master] core: make sure we observe EFLAGS_ID only

syslinux-bot for H. Peter Anvin hpa at zytor.com
Wed Mar 31 09:27:04 PDT 2010


Commit-ID:  01fc061d9851463296347d3834185ea5c5618a68
Gitweb:     http://syslinux.zytor.com/commit/01fc061d9851463296347d3834185ea5c5618a68
Author:     H. Peter Anvin <hpa at zytor.com>
AuthorDate: Wed, 31 Mar 2010 09:24:25 -0700
Committer:  H. Peter Anvin <hpa at zytor.com>
CommitDate: Wed, 31 Mar 2010 09:24:25 -0700

core: make sure we observe EFLAGS_ID only

When looking for CPUID, make sure we only look at EFLAGS_ID and no
other flags that could possibly have changed for extrinsic reasons.

Signed-off-by: H. Peter Anvin <hpa at zytor.com>


---
 core/cpuinit.inc |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/core/cpuinit.inc b/core/cpuinit.inc
index cad9b81..4332fbc 100644
--- a/core/cpuinit.inc
+++ b/core/cpuinit.inc
@@ -60,6 +60,7 @@ check_xen:
 		pop eax
 		popfd
 		xor eax,edx
+		and eax,(1 << 21)
 		jz .not_xen			; No CPUID
 
 		xor ebx,ebx



More information about the Syslinux-commits mailing list