commit | 80d2976cc840e1f892e41a3fd4a6fb16797f5413 | [log] [tgz] |
---|---|---|
author | Bin Meng <bmeng.cn@gmail.com> | Thu Jan 22 11:29:41 2015 +0800 |
committer | Simon Glass <sjg@chromium.org> | Fri Jan 23 17:24:55 2015 -0700 |
tree | 8c9321d4657a4154867bd77d92d4d5dad851dbc3 | |
parent | 47eac040869d96b8ccaebbf522d7ae47bdb1c2cf [diff] |
x86: Test mtrr support flag before accessing mtrr msr On some x86 processors (like Intel Quark) the MTRR registers are not supported. This is reflected by the CPUID (EAX 01H) result EDX[12]. Accessing the MTRR registers on such processors will cause #GP so we must test the support flag before accessing MTRR MSRs. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Simon Glass <sjg@chromium.org>