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@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; };