commit | 8fafd010bd39102b06aa3ecb47ab40120bb6f0dc | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Mon Oct 01 12:22:37 2018 -0600 |
committer | Simon Glass <sjg@chromium.org> | Tue Oct 09 04:40:27 2018 -0600 |
tree | 2ac3eacb5e1a1274da1efd3fe34a893d8d978d65 | |
parent | 2c1e550aee8c3e8028515dd94804910b58221f20 [diff] |
x86: Update mtrr functions to allow leaving cache alone 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@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>