Re: [U-Boot] [PATCH 3/3] x86: Test mtrr support flag before accessing mtrr msr

2015-01-21 Thread Bin Meng
Hi Simon, On Thu, Jan 22, 2015 at 12:06 AM, Simon Glass s...@chromium.org wrote: Hi Bin, On 19 January 2015 at 22:01, Bin Meng bmeng...@gmail.com wrote: On some x86 processors (like Intel Quark) the MTRR registers are not supported. This is reflected by the CPUID (EAX 01H) result EDX[12].

Re: [U-Boot] [PATCH 3/3] x86: Test mtrr support flag before accessing mtrr msr

2015-01-21 Thread Simon Glass
Hi Bin, On 19 January 2015 at 22:01, Bin Meng bmeng...@gmail.com wrote: 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

Re: [U-Boot] [PATCH 3/3] x86: Test mtrr support flag before accessing mtrr msr

2015-01-21 Thread Simon Glass
Hi Bin, On 21 January 2015 at 09:19, Bin Meng bmeng...@gmail.com wrote: Hi Simon, On Thu, Jan 22, 2015 at 12:06 AM, Simon Glass s...@chromium.org wrote: Hi Bin, On 19 January 2015 at 22:01, Bin Meng bmeng...@gmail.com wrote: On some x86 processors (like Intel Quark) the MTRR registers are

[U-Boot] [PATCH 3/3] x86: Test mtrr support flag before accessing mtrr msr

2015-01-19 Thread Bin Meng
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