commit | 3bcd6cf89efee5c8088dce2f770bdd5592186efb | [log] [tgz] |
---|---|---|
author | Bin Meng <bmeng.cn@gmail.com> | Sat Jul 31 16:45:25 2021 +0800 |
committer | Bin Meng <bmeng.cn@gmail.com> | Mon Aug 02 15:11:40 2021 +0800 |
tree | 39745f1012ba41a5a594d2995a6f826d77803882 | |
parent | 596bd0589ad8ee1df78133af740f1d29b235fb66 [diff] |
x86: mtrr: Skip MSRs that were already programmed in mtrr_commit() At present mtrr_commit() programs the MTRR MSRs starting from index 0, which may overwrite MSRs that were already programmed by previous boot stage or FSP. Switch to call mtrr_set_next_var() instead. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org> Tested on chromebook_coral, chromebook_samus, chromebook_link, minnowmax Tested-by: Simon Glass <sjg@chromium.org>