summaryrefslogtreecommitdiff
path: root/OvmfPkg/AmdSevDxe
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2023-03-22 00:02:42 -0700
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2023-04-01 23:11:44 +0000
commit12d3d60f51550a7166f8f3e758866b53b9a88e73 (patch)
tree416d21f84156ab817fe8a93b21d4d5c78741a925 /OvmfPkg/AmdSevDxe
parent495809a614083bd8c43eb3323b65df36985f4a50 (diff)
downloadedk2-12d3d60f51550a7166f8f3e758866b53b9a88e73.zip
edk2-12d3d60f51550a7166f8f3e758866b53b9a88e73.tar.gz
edk2-12d3d60f51550a7166f8f3e758866b53b9a88e73.tar.bz2
OvmfPkg: Consume new alignment-related macros
This patch substitutes the macros that were renamed in the second patch with the new, shared alignment macros. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Jiewen Yao <Jiewen.yao@intel.com> Acked-by: Tom Lendacky <thomas.lendacky@amd.com>
Diffstat (limited to 'OvmfPkg/AmdSevDxe')
-rw-r--r--OvmfPkg/AmdSevDxe/AmdSevDxe.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/OvmfPkg/AmdSevDxe/AmdSevDxe.c b/OvmfPkg/AmdSevDxe/AmdSevDxe.c
index 71a1eaa..9b0d0e9 100644
--- a/OvmfPkg/AmdSevDxe/AmdSevDxe.c
+++ b/OvmfPkg/AmdSevDxe/AmdSevDxe.c
@@ -44,8 +44,6 @@ STATIC BOOLEAN mAcceptAllMemoryAtEBS = TRUE;
STATIC EFI_EVENT mAcceptAllMemoryEvent = NULL;
-#define IS_ALIGNED_(x, y) ((((x) & ((y) - 1)) == 0))
-
STATIC
EFI_STATUS
EFIAPI
@@ -60,8 +58,8 @@ AmdSevMemoryAccept (
// multiple of SIZE_4KB. Use an assert instead of returning an erros since
// this is an EDK2-internal protocol.
//
- ASSERT (IS_ALIGNED_ (StartAddress, SIZE_4KB));
- ASSERT (IS_ALIGNED_ (Size, SIZE_4KB));
+ ASSERT (IS_ALIGNED (StartAddress, SIZE_4KB));
+ ASSERT (IS_ALIGNED (Size, SIZE_4KB));
ASSERT (Size != 0);
MemEncryptSevSnpPreValidateSystemRam (