From 5faaac27fdf2ea4f08b754fcedec4b335ffeb69b Mon Sep 17 00:00:00 2001 From: anonymix007 <48598263+anonymix007@users.noreply.github.com> Date: Sat, 31 Aug 2024 21:31:49 +0300 Subject: [PATCH] boot: Add EFI_STATUS_IS_ERROR macro --- src/boot/efi/efi.h | 2 ++ 1 file changed, 2 insertions(+) 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)) -- 2.47.3