[coreboot-gerrit] Change in coreboot[master]: include/device/pci: Fix union endianess

Patrick Rudolph (Code Review) gerrit at coreboot.org
Mon Jul 23 13:34:44 CEST 2018


Patrick Rudolph has uploaded this change for review. ( https://review.coreboot.org/27600


Change subject: include/device/pci: Fix union endianess
......................................................................

include/device/pci: Fix union endianess

Change-Id: I3dad4153008654d69db881e83e96421e9e3bde5a
Signed-off-by: Patrick Rudolph <patrick.rudolph at 9elements.com>
---
M src/include/device/pci.h
1 file changed, 5 insertions(+), 0 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/00/27600/1

diff --git a/src/include/device/pci.h b/src/include/device/pci.h
index f1ab91b..e7e5808 100644
--- a/src/include/device/pci.h
+++ b/src/include/device/pci.h
@@ -59,9 +59,14 @@
 struct msix_entry {
 	union {
 		struct {
+#ifdef __LITTLE_ENDIAN__
 			u32 lower_addr;
 			u32 upper_addr;
+#else
+			u32 upper_addr;
+			u32 lower_addr;
 		};
+#endif
 		struct {
 			u64 addr;
 		};

-- 
To view, visit https://review.coreboot.org/27600
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I3dad4153008654d69db881e83e96421e9e3bde5a
Gerrit-Change-Number: 27600
Gerrit-PatchSet: 1
Gerrit-Owner: Patrick Rudolph <patrick.rudolph at 9elements.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180723/0973b253/attachment.html>


More information about the coreboot-gerrit mailing list