[U-Boot] [PATCH 11/20] x86: Add defines for fixed MTRRs

Bin Meng bmeng.cn at gmail.com
Tue Apr 28 09:45:14 CEST 2015


On Tue, Apr 28, 2015 at 6:48 AM, Simon Glass <sjg at chromium.org> wrote:
> Add MSR numbers for the fixed MTRRs.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
>  arch/x86/include/asm/mtrr.h | 14 ++++++++++++++
>  1 file changed, 14 insertions(+)
>
> diff --git a/arch/x86/include/asm/mtrr.h b/arch/x86/include/asm/mtrr.h
> index fda4eae..3841593 100644
> --- a/arch/x86/include/asm/mtrr.h
> +++ b/arch/x86/include/asm/mtrr.h
> @@ -34,6 +34,20 @@
>  /* Number of MTRRs supported */
>  #define MTRR_COUNT             8
>
> +#define NUM_FIXED_RANGES 88
> +#define RANGES_PER_FIXED_MTRR 8
> +#define MTRR_FIX_64K_00000_MSR 0x250
> +#define MTRR_FIX_16K_80000_MSR 0x258
> +#define MTRR_FIX_16K_A0000_MSR 0x259
> +#define MTRR_FIX_4K_C0000_MSR 0x268
> +#define MTRR_FIX_4K_C8000_MSR 0x269
> +#define MTRR_FIX_4K_D0000_MSR 0x26a
> +#define MTRR_FIX_4K_D8000_MSR 0x26b
> +#define MTRR_FIX_4K_E0000_MSR 0x26c
> +#define MTRR_FIX_4K_E8000_MSR 0x26d
> +#define MTRR_FIX_4K_F0000_MSR 0x26e
> +#define MTRR_FIX_4K_F8000_MSR 0x26f
> +
>  #if !defined(__ASSEMBLER__)
>
>  /**
> --

Reviewed-by: Bin Meng <bmeng.cn at gmail.com>


More information about the U-Boot mailing list