Efi: fix headers for 32 bit platforms
Change-Id: Id43bfcbfc24b1adb8f6e9fff587c6df9b62910f2 Reviewed-on: https://review.haiku-os.org/c/haiku/+/2413 Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com> Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
parent
a5ca573d27
commit
bf9093e794
@ -26,10 +26,10 @@ struct efi_block_io_protocol {
|
||||
bool ExtendedVerification) EFIAPI;
|
||||
efi_status (*ReadBlocks)(efi_block_io_protocol* self,
|
||||
uint32_t MediaId, uint64_t LBA,
|
||||
uint64_t BufferSize, void* Buffer) EFIAPI;
|
||||
size_t BufferSize, void* Buffer) EFIAPI;
|
||||
efi_status (*WriteBlocks)(efi_block_io_protocol* self,
|
||||
uint32_t MediaId, uint64_t LBA,
|
||||
uint64_t BufferSize, const void* Buffer) EFIAPI;
|
||||
size_t BufferSize, const void* Buffer) EFIAPI;
|
||||
efi_status (*FlushBlocks)(efi_block_io_protocol* self);
|
||||
|
||||
|
||||
|
@ -14,9 +14,14 @@
|
||||
#define EFIAPI
|
||||
#endif
|
||||
|
||||
#if UINTPTR_MAX == 0xffffffff
|
||||
#define EFI_ERROR_MASK 0x80000000
|
||||
#elif UINTPTR_MAX == 0xffffffffffffffff
|
||||
#define EFI_ERROR_MASK 0x8000000000000000
|
||||
#endif
|
||||
|
||||
#define EFI_ERR(x) (EFI_ERROR_MASK | x)
|
||||
#define EFI_ERROR(x) (((int64_t)x) < 0)
|
||||
#define EFI_ERROR(x) (((ssize_t)x) < 0)
|
||||
|
||||
#define EFI_SUCCESS 0
|
||||
#define EFI_LOAD_ERROR EFI_ERR(1)
|
||||
|
Loading…
Reference in New Issue
Block a user