Blame SOURCES/efibootmgr-0.5.4-Remove-device-path-padding-on-non-Itanium.patch

8dd33d
From 2d8f962284f40b918c0fc8385e58fcba219ddc12 Mon Sep 17 00:00:00 2001
8dd33d
From: Fedora Ninjas <pjones@fedoraproject.org>
8dd33d
Date: Wed, 28 Nov 2012 17:13:24 -0500
8dd33d
Subject: [PATCH 2/5] Remove device path padding on non-Itanium
8dd33d
8dd33d
This code predates EFI support on any x86 hardware, and it's a strict
8dd33d
violation of the specification. Windows doesn't do it either.
8dd33d
---
8dd33d
 src/include/efi.h | 2 ++
8dd33d
 1 file changed, 2 insertions(+)
8dd33d
8dd33d
diff --git a/src/include/efi.h b/src/include/efi.h
8dd33d
index be667ae..c2ac853 100644
8dd33d
--- a/src/include/efi.h
8dd33d
+++ b/src/include/efi.h
8dd33d
@@ -294,7 +294,9 @@ typedef struct {
8dd33d
 	uint8_t  signature[16];
8dd33d
 	uint8_t  mbr_type;
8dd33d
 	uint8_t  signature_type;
8dd33d
+#ifdef __ia64
8dd33d
 	uint8_t  padding[6]; /* Emperically needed */
8dd33d
+#endif
8dd33d
 } __attribute__((packed)) HARDDRIVE_DEVICE_PATH;
8dd33d
 
8dd33d
 typedef struct {
8dd33d
-- 
8dd33d
1.8.0
8dd33d