[PATCH v2 14/18] x86: spl: Avoid using init_cache_f_r() from SPL

Bin Meng bmeng.cn at gmail.com
Thu May 4 16:22:31 CEST 2023


On Tue, Apr 18, 2023 at 11:31 PM Simon Glass <sjg at chromium.org> wrote:
>
> This function is used by U-Boot proper. It does not set up MTRRs when SPL
> is enabled, but we do want this done when it is called from SPL. In fact
> it is confusing to use the same function from SPL, since there are require
> a few conditions there.

since there are a few conditions required there ?

>
> All init_cache_f_r() really does is commit the MTRRs and set up the cache.
> Do this in the SPL's version of this function instead.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
> (no changes since v1)
>
>  arch/x86/lib/spl.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>

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


More information about the U-Boot mailing list