summaryrefslogtreecommitdiff
path: root/util/msrtool/sys.c
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2017-01-22 22:19:21 +0100
committerKyösti Mälkki <kyosti.malkki@gmail.com>2018-05-15 03:55:19 +0000
commitfbf57596bb1715ebd05bf81e026862a033d62a03 (patch)
treeb047b5dd799f020cf61d5c12dac00dfa33f3a1f6 /util/msrtool/sys.c
parent07e77f13d4987a4424be254f439bb6ac505761a7 (diff)
downloadcoreboot-fbf57596bb1715ebd05bf81e026862a033d62a03.tar.xz
msrtool: use a bit more clever cpuid vendor match
Not everything non-intel is AMD. Change-Id: I06d6fbaa0b4f2c9e61d9b3b4aeeb349a91aa090e Signed-off-by: Lubomir Rintel <lkundrak@v3.sk> Reviewed-on: https://review.coreboot.org/18255 Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'util/msrtool/sys.c')
-rw-r--r--util/msrtool/sys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/msrtool/sys.c b/util/msrtool/sys.c
index 3e50f49a26..7ff1131b63 100644
--- a/util/msrtool/sys.c
+++ b/util/msrtool/sys.c
@@ -36,7 +36,7 @@ struct cpuid_t *cpuid(void) {
asm ("cpuid" : "=b" (outebx) : "a" (0) : "%ecx", "%edx");
#endif
- id.vendor = (outebx == 0x756e6547) ? VENDOR_INTEL : VENDOR_AMD;
+ id.vendor = outebx;
/* Then, identificate CPU itself */
#if defined(__DARWIN__) && !defined(__LP64__)