summaryrefslogtreecommitdiff
path: root/mtrr.c
diff options
context:
space:
mode:
authordavej <davej>2002-10-30 03:18:06 +0000
committerdavej <davej>2002-10-30 03:18:06 +0000
commite084e36bb6249f2fa76956cb3e02c630e4ccf9aa (patch)
treef03cb8d70c3e6419c16dbb9657f00c23637dee0e /mtrr.c
parented3425c0b5f1bf8af54e84589af60e8b81755056 (diff)
check MTRRs are available before dumping them
Diffstat (limited to 'mtrr.c')
-rw-r--r--mtrr.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mtrr.c b/mtrr.c
index 311b02b..fb9d02d 100644
--- a/mtrr.c
+++ b/mtrr.c
@@ -1,5 +1,5 @@
/*
- * $Id: mtrr.c,v 1.3 2002/07/12 01:48:59 davej Exp $
+ * $Id: mtrr.c,v 1.4 2002/10/30 03:18:07 davej Exp $
* This file is part of x86info
* (C) 2002 Dave Jones.
*
@@ -24,6 +24,9 @@ void dump_mtrrs (struct cpudata *cpu)
{
int i;
+ if (!(cpu->flags & (X86_FEATURE_MTRR)))
+ return;
+
printf ("MTRR registers:\n");
printf ("MTRRcap (0xfe): ");