commit | be53d5e824d61c65dcdb0ff99645a4031ec894aa | [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 | 7c29c137f6a0193a7ccf5b76ae5d4380be72f264 [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>