CoreReleaseMemoryLock ();\r
\r
ApplyMemoryProtectionPolicy (EfiMaxMemoryType, Type, Start,\r
- EFI_PAGES_TO_SIZE (NumberOfPages));\r
+ LShiftU64 (NumberOfPages, EFI_PAGE_SHIFT));\r
\r
//\r
// If Loading Module At Fixed Address feature is enabled. try to allocate memory with Runtime code & Boot time code type\r