From: anonymix007 <48598263+anonymix007@users.noreply.github.com> Date: Sat, 31 Aug 2024 18:31:49 +0000 (+0300) Subject: boot: Add EFI_STATUS_IS_ERROR macro X-Git-Tag: v257-rc1~254^2~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5faaac27fdf2ea4f08b754fcedec4b335ffeb69b;p=thirdparty%2Fsystemd.git boot: Add EFI_STATUS_IS_ERROR macro --- diff --git a/src/boot/efi/efi.h b/src/boot/efi/efi.h index e8217c18361..e1042635b9c 100644 --- a/src/boot/efi/efi.h +++ b/src/boot/efi/efi.h @@ -68,6 +68,8 @@ typedef uint64_t EFI_PHYSICAL_ADDRESS; # error Unsupported pointer size #endif +#define EFI_STATUS_IS_ERROR(s) (((s) & EFI_ERROR_MASK) != 0) + #define EFIWARN(s) ((EFI_STATUS) s) #define EFIERR(s) ((EFI_STATUS) (s | EFI_ERROR_MASK))