]> git.proxmox.com Git - mirror_edk2.git/commit
UefiCpuPkg/MtrrLib: Handle one setting request covering all memory
authorRuiyu Ni <ruiyu.ni@intel.com>
Tue, 9 Jan 2018 02:33:57 +0000 (10:33 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Wed, 10 Jan 2018 02:28:28 +0000 (10:28 +0800)
commitcee85c48e92be0cb1555f8ab6746cfd15891de2c
tree66b0707e53243d4d4f2c8292725867ceecaee11b
parentffb4c72d7b637d4ac377fc7da7575069f15c288e
UefiCpuPkg/MtrrLib: Handle one setting request covering all memory

*SetMemoryAttribute*() API cannot handle the setting request that
looks like <0, MAX_ADDRESS, Type>. The buggy parameter checking
logic returns Unsupported for this case.
The patch fixes the checking logic to handle such case.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
UefiCpuPkg/Library/MtrrLib/MtrrLib.c