]> git.baikalelectronics.ru Git - uboot.git/commit
x86: Don't set up MTRRs if previously done
authorSimon Glass <sjg@chromium.org>
Sun, 27 Jun 2021 23:51:01 +0000 (17:51 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Thu, 15 Jul 2021 11:50:00 +0000 (19:50 +0800)
commit6fd9d4efafac65f3381d61508d60c3a50e59f46d
tree831b4cb5c7d2d7a4e97485b91ba6a291c08db3bd
parent13e84dd910fe9182689564814a4cf6e06e9f2296
x86: Don't set up MTRRs if previously done

When starting U-Boot from a previous-stage bootloader we presumably don't
need to set up the variable MTRRs. In fact this could be harmful if the
existing settings are not what U-Boot uses.

Skip that step in this case.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/i386/cpu.c