[U-Boot] [PATCH 33/45] x86: Update mtrr functions to allow leaving cache alone
sjg at google.com
sjg at google.com
Tue Oct 9 23:54:59 UTC 2018
On Tue, Oct 2, 2018 at 2:24 AM Simon Glass <sjg at chromium.org> wrote:
>
> At present the mtrr functions disable the cache before making changes and
> enable it again afterwards. This is fine in U-Boot, but does not work if
> running in CAR (such as we are in SPL).
>
> Update the functions so that the caller can request that caches be left
> alone.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
> arch/x86/cpu/mtrr.c | 31 +++++++++++++++++++++++--------
> arch/x86/include/asm/mtrr.h | 6 ++++--
> cmd/x86/mtrr.c | 8 ++++----
> 3 files changed, 31 insertions(+), 14 deletions(-)
>
Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
Applied to u-boot-dm
More information about the U-Boot
mailing list