Commit fbf57596 authored by Lubomir Rintel's avatar Lubomir Rintel Committed by Kyösti Mälkki
Browse files

msrtool: use a bit more clever cpuid vendor match



Not everything non-intel is AMD.

Change-Id: I06d6fbaa0b4f2c9e61d9b3b4aeeb349a91aa090e
Signed-off-by: Lubomir Rintel's avatarLubomir Rintel <lkundrak@v3.sk>
Reviewed-on: https://review.coreboot.org/18255

Reviewed-by: default avatarKyösti Mälkki <kyosti.malkki@gmail.com>
Tested-by: default avatarbuild bot (Jenkins) <no-reply@coreboot.org>
parent 07e77f13
......@@ -95,8 +95,8 @@ struct msrdef {
#define MAX_CORES 8
typedef enum {
VENDOR_INTEL = 1,
VENDOR_AMD = 2,
VENDOR_INTEL = 0x756e6547,
VENDOR_AMD = 0x68747541,
} vendor_t;
struct cpuid_t {
......
......@@ -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__)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment