Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ionescu007/SimpleVisor.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shvvmx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shvvmx.c b/shvvmx.c
index f2dc98f..1c65b01 100644
--- a/shvvmx.c
+++ b/shvvmx.c
@@ -96,7 +96,7 @@ ShvVmxMtrrAdjustEffectiveMemoryType (
// Check if this large page falls within the boundary. If a single
// physical page (4KB) touches it, we need to override the entire 2MB.
//
- if (((LargePageAddress + _2MB - 1) >= VpData->MtrrData[i].PhysicalAddressMin) &&
+ if (((LargePageAddress + (_2MB - 1)) >= VpData->MtrrData[i].PhysicalAddressMin) &&
(LargePageAddress <= VpData->MtrrData[i].PhysicalAddressMax))
{
//