Commit db55bd7d authored by Simon Glass's avatar Simon Glass
Browse files

x86: Commit the current MTRRs before relocation

Once we stop running from ROM we should set up the MTTRs to speed up
execution. This is only needed for platforms that don't have an FSP.
Also in the Coreboot case, the MTRRs are set up for us.
Signed-off-by: default avatarSimon Glass <>
parent aaafcd6c
......@@ -7,6 +7,7 @@
#include <common.h>
#include <fdtdec.h>
#include <spi.h>
#include <asm/mtrr.h>
#include <asm/sections.h>
......@@ -66,6 +67,13 @@ int calculate_relocation_address(void)
int init_cache_f_r(void)
#if defined(CONFIG_X86_RESET_VECTOR) & !defined(CONFIG_HAVE_FSP)
int ret;
ret = mtrr_commit(false);
if (ret)
return ret;
/* Initialise the CPU cache(s) */
return init_cache();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment