Simon Glass add3f4c918 x86: Add a function to set variable MTRRs
Normally U-Boot handles MTRRs through an add/commit process which
overwrites all MTRRs. But in very early boot it is not desirable to clear
the existing MTRRs since they may be in use and it can cause a hang.

Add a new mtrr_set_next_var() function which sets up the next available
MTRR to the required region.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
[bmeng: pass 'type' to set_var_mtrr() in mtrr_set_next_var()]
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
2019-10-08 13:57:48 +08:00
..
2011-04-13 19:43:28 +10:00
2015-04-29 21:02:33 -06:00
2017-02-06 11:38:46 +08:00
2018-04-16 16:54:51 +08:00
2019-10-08 13:53:54 +08:00
2011-04-13 19:43:28 +10:00
2011-04-13 19:43:28 +10:00
2011-04-13 19:43:28 +10:00