summaryrefslogtreecommitdiffstats
path: root/util/msrtool/intel_pentium3_early.c
diff options
context:
space:
mode:
authorAnton Kochkov <anton.kochkov@gmail.com>2012-07-04 07:31:37 +0400
committerStefan Reinauer <stefan.reinauer@coreboot.org>2012-07-10 00:56:49 +0200
commitffbbecc9eed9705d7fdb9f6825ab7ccd9224fb09 (patch)
tree122ff5685804395ad52288e2601529d752f94916 /util/msrtool/intel_pentium3_early.c
parente1e6a91ce0738400fa1615179de88ebc0df29f66 (diff)
downloadcoreboot-ffbbecc9eed9705d7fdb9f6825ab7ccd9224fb09.tar.gz
coreboot-ffbbecc9eed9705d7fdb9f6825ab7ccd9224fb09.tar.bz2
coreboot-ffbbecc9eed9705d7fdb9f6825ab7ccd9224fb09.zip
msrtool: Fix Intel CPUs detection
Added vendor check in sys.c file and fixed models checking in intel targets files. Change-Id: I1ce52bbce431dea79e903d6bc7a12e5b9ad061be Signed-off-by: Anton Kochkov <anton.kochkov@gmail.com> Reviewed-on: http://review.coreboot.org/1169 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'util/msrtool/intel_pentium3_early.c')
-rw-r--r--util/msrtool/intel_pentium3_early.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/util/msrtool/intel_pentium3_early.c b/util/msrtool/intel_pentium3_early.c
index 5de74c1d78b2..ced303778ba2 100644
--- a/util/msrtool/intel_pentium3_early.c
+++ b/util/msrtool/intel_pentium3_early.c
@@ -21,7 +21,10 @@
int intel_pentium3_early_probe(const struct targetdef *target) {
struct cpuid_t *id = cpuid();
- return ((0x6 == id->family)&((0x7 == id->model)|(0x8 == id->model)));
+ return ((0x6 == id->family) && (
+ (0x7 == id->model) ||
+ (0x8 == id->model)
+ ));
}
const struct msrdef intel_pentium3_early_msrs[] = {