mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 15:41:40 +00:00
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:
parent
d8f6db4768
commit
dbaec46767
1 changed files with 2 additions and 1 deletions
|
@ -18,7 +18,8 @@ __weak ulong board_get_usable_ram_top(ulong total_size)
|
|||
|
||||
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;
|
||||
|
||||
ret = mtrr_commit(false);
|
||||
|
|
Loading…
Reference in a new issue