\r
STATIC EFI_EVENT mAcceptAllMemoryEvent = NULL;\r
\r
-#define IS_ALIGNED_(x, y) ((((x) & ((y) - 1)) == 0))\r
-\r
STATIC\r
EFI_STATUS\r
EFIAPI\r
// multiple of SIZE_4KB. Use an assert instead of returning an erros since\r
// this is an EDK2-internal protocol.\r
//\r
- ASSERT (IS_ALIGNED_ (StartAddress, SIZE_4KB));\r
- ASSERT (IS_ALIGNED_ (Size, SIZE_4KB));\r
+ ASSERT (IS_ALIGNED (StartAddress, SIZE_4KB));\r
+ ASSERT (IS_ALIGNED (Size, SIZE_4KB));\r
ASSERT (Size != 0);\r
\r
MemEncryptSevSnpPreValidateSystemRam (\r
\r
#include "SnpPageStateChange.h"\r
\r
-#define IS_ALIGNED_(x, y) ((((x) & (y - 1)) == 0))\r
#define PAGES_PER_LARGE_ENTRY 512\r
\r
STATIC\r
//\r
// Is this a 2MB aligned page? Check if we can use the Large RMP entry.\r
//\r
- if (UseLargeEntry && IS_ALIGNED_ (BaseAddress, SIZE_2MB) &&\r
+ if (UseLargeEntry && IS_ALIGNED (BaseAddress, SIZE_2MB) &&\r
((EndAddress - BaseAddress) >= SIZE_2MB))\r
{\r
RmpPageSize = PvalidatePageSize2MB;\r