mirror of https://github.com/acidanthera/audk.git
UefiCpuPkg/PiSmmCpuDxeSmm: Fix logic check error
Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Eric Dong <eric.dong@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan <jeff.fan@intel.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
This commit is contained in:
parent
b7025df8f9
commit
29dc8aa861
|
@ -267,7 +267,7 @@ IsInSmmRanges (
|
|||
{
|
||||
UINTN Index;
|
||||
|
||||
if ((Address < mCpuHotPlugData.SmrrBase) || (Address >= mCpuHotPlugData.SmrrBase + mCpuHotPlugData.SmrrSize)) {
|
||||
if ((Address >= mCpuHotPlugData.SmrrBase) && (Address < mCpuHotPlugData.SmrrBase + mCpuHotPlugData.SmrrSize)) {
|
||||
return TRUE;
|
||||
}
|
||||
for (Index = 0; Index < mSmmCpuSmramRangeCount; Index++) {
|
||||
|
|
Loading…
Reference in New Issue