aboutsummaryrefslogtreecommitdiff
path: root/cmd/x86
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2021-07-31 16:45:26 +0800
committerBin Meng <bmeng.cn@gmail.com>2021-08-02 15:11:41 +0800
commit9a7c6fde07d04e392dadfd406b7837c04aed0d72 (patch)
tree02e024f7f95da9b256d73d384a98942e14c07707 /cmd/x86
parent3bcd6cf89efee5c8088dce2f770bdd5592186efb (diff)
downloadu-boot-9a7c6fde07d04e392dadfd406b7837c04aed0d72.zip
u-boot-9a7c6fde07d04e392dadfd406b7837c04aed0d72.tar.gz
u-boot-9a7c6fde07d04e392dadfd406b7837c04aed0d72.tar.bz2
x86: mtrr: Abort if requested size is not power of 2
The size parameter of mtrr_add_request() and mtrr_set_next_var() shall be power of 2, otherwise the logic creates a mask that does not meet the requirement of IA32_MTRR_PHYSMASK register. Programming such a mask value to IA32_MTRR_PHYSMASK generates #GP. 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>
Diffstat (limited to 'cmd/x86')
0 files changed, 0 insertions, 0 deletions