boot: Add EFI_STATUS_IS_ERROR macro

This commit is contained in:
anonymix007
2024-08-31 21:31:49 +03:00
parent 53443e8176
commit 5faaac27fd

View File

@@ -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))