src/cpu/x86/mtrr/earlymtrr: Add clear_all_var_mtrr
commit3ae3ff28286f1e752f01ccf9480414ff1d82615f
authorRaul E Rangel <rrangel@chromium.org>
Mon, 27 Apr 2020 21:47:18 +0000 (27 15:47 -0600)
committerAaron Durbin <adurbin@chromium.org>
Wed, 29 Apr 2020 04:59:56 +0000 (29 04:59 +0000)
tree57579c2d77f8ee36fa5f4527617333faca91d0ed
parentfa52f31e114d7d15b49dca448832138c884138cd
src/cpu/x86/mtrr/earlymtrr: Add clear_all_var_mtrr

Picasso does not define the state of variable MTRRs on boot. Add a
helper function to clear all MTRRs.

BUG=b:147042464
TEST=Build trembyle

Signed-off-by: Raul E Rangel <rrangel@chromium.org>
Change-Id: I21b887ce12849a95ddd8f1698028fb6bbfb4a7f6
Reviewed-on: https://review.coreboot.org/c/coreboot/+/40764
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
src/cpu/x86/mtrr/earlymtrr.c
src/include/cpu/x86/mtrr.h