x86: Skip setting up MTRRs in slimbootloader
The setting up MTRRs have already been done in previous Slim Bootloader stages. Signed-off-by: Aiden Park <aiden.park@intel.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Tested-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
@@ -18,7 +18,8 @@ __weak ulong board_get_usable_ram_top(ulong total_size)
|
|||||||
|
|
||||||
int init_cache_f_r(void)
|
int init_cache_f_r(void)
|
||||||
{
|
{
|
||||||
#if CONFIG_IS_ENABLED(X86_32BIT_INIT) && !defined(CONFIG_HAVE_FSP)
|
#if CONFIG_IS_ENABLED(X86_32BIT_INIT) && !defined(CONFIG_HAVE_FSP) && \
|
||||||
|
!defined(CONFIG_SYS_SLIMBOOTLOADER)
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
ret = mtrr_commit(false);
|
ret = mtrr_commit(false);
|
||||||
|
Reference in New Issue
Block a user