summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-03-31 09:24:25 -0700
committerH. Peter Anvin <hpa@zytor.com>2010-03-31 09:24:25 -0700
commit01fc061d9851463296347d3834185ea5c5618a68 (patch)
tree91b89bd27b245ddc97c88cd34b0e15603e180829
parent5135785ccf38c0d480ff5b880d686a699996c722 (diff)
downloadsyslinux-01fc061d9851463296347d3834185ea5c5618a68.tar.gz
core: make sure we observe EFLAGS_ID onlysyslinux-3.86
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@zytor.com>
-rw-r--r--core/cpuinit.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/cpuinit.inc b/core/cpuinit.inc
index cad9b814..4332fbc1 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