diff options
| author | Bastien Roucariès <rouca@debian.org> | 2024-05-06 19:17:23 +0000 |
|---|---|---|
| committer | Bastien Roucariès <rouca@debian.org> | 2024-05-06 19:17:23 +0000 |
| commit | 0d1d760b90dfe26145b7c4e4cd0de55117bcdbbb (patch) | |
| tree | a66ff512cd9be70de19d8983a2a04b9a1d03da6b /include/peimage.h | |
| parent | ee3097c3f96727fdb41e36d93b6c957d281da97e (diff) | |
| parent | a075e58606b9affb6dfb176c71caab816737a981 (diff) | |
| download | efi-boot-shim-0d1d760b90dfe26145b7c4e4cd0de55117bcdbbb.tar.gz efi-boot-shim-0d1d760b90dfe26145b7c4e4cd0de55117bcdbbb.zip | |
Merge tag 'upstream/15.8' into buster/updates
Upstream version 15.8
Diffstat (limited to 'include/peimage.h')
| -rw-r--r-- | include/peimage.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/peimage.h b/include/peimage.h index e97b29c4..6eef1051 100644 --- a/include/peimage.h +++ b/include/peimage.h @@ -29,6 +29,9 @@ #define ALIGN_VALUE(Value, Alignment) ((Value) + (((Alignment) - (Value)) & ((Alignment) - 1)))
#define ALIGN_POINTER(Pointer, Alignment) ((VOID *) (ALIGN_VALUE ((UINTN)(Pointer), (Alignment))))
+// Check if `val` is evenly aligned to the page size.
+#define IS_PAGE_ALIGNED(val) (!((val) & EFI_PAGE_MASK))
+
//
// PE32+ Subsystem type for EFI images
//
|
