diff options
author | davej <davej> | 2002-10-30 03:18:06 +0000 |
---|---|---|
committer | davej <davej> | 2002-10-30 03:18:06 +0000 |
commit | e084e36bb6249f2fa76956cb3e02c630e4ccf9aa (patch) | |
tree | f03cb8d70c3e6419c16dbb9657f00c23637dee0e /mtrr.c | |
parent | ed3425c0b5f1bf8af54e84589af60e8b81755056 (diff) |
check MTRRs are available before dumping them
Diffstat (limited to 'mtrr.c')
-rw-r--r-- | mtrr.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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): "); |