From 71129d6b4857dc694bf19f2c28bedbe9ef99d7e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lesimple?= Date: Mon, 2 Dec 2019 19:07:10 +0100 Subject: [PATCH] fix: tsx: rtm feature bit is in EBX(11) --- spectre-meltdown-checker.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spectre-meltdown-checker.sh b/spectre-meltdown-checker.sh index ec16935..d40137b 100755 --- a/spectre-meltdown-checker.sh +++ b/spectre-meltdown-checker.sh @@ -2923,11 +2923,11 @@ check_cpu() ret=1 cpuid_rtm=0 if is_intel; then - read_cpuid 0x7 $EDX 11 1 1; ret=$? + read_cpuid 0x7 $EBX 11 1 1; ret=$? fi if [ $ret -eq 0 ]; then cpuid_rtm=1 - pstatus green YES + pstatus green YES "RTM feature bit" elif [ $ret -eq 2 ]; then cpuid_rtm=-1 pstatus yellow UNKNOWN "is cpuid kernel module available?"