[PATCH 1/5] Fix unaligned function pointers.

Johannes Obermayr johannesobermayr at gmx.de
Fri Nov 4 08:42:02 PDT 2011


From: Andreas Schwab <schwab at suse.de>

---
 src/AtomBios/includes/CD_Structs.h |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/AtomBios/includes/CD_Structs.h b/src/AtomBios/includes/CD_Structs.h
index 01fb80e..b51632f 100644
--- a/src/AtomBios/includes/CD_Structs.h
+++ b/src/AtomBios/includes/CD_Structs.h
@@ -419,6 +419,10 @@ typedef struct _DEVICE_DATA	{
 
 #endif
 
+#if (PARSER_TYPE==DRIVER_TYPE_PARSER)
+#pragma pack(pop)
+#endif
+
 struct _PARSER_TEMP_DATA;
 typedef UINT32 WORKSPACE_POINTER;
 
@@ -479,8 +483,4 @@ typedef struct _INDIRECT_IO_PARSER_COMMANDS
     UINT8             csize;
 } INDIRECT_IO_PARSER_COMMANDS;
 
-#if (PARSER_TYPE==DRIVER_TYPE_PARSER)
-#pragma pack(pop)
-#endif
-
 #endif
-- 
1.7.7



More information about the xorg-driver-ati mailing list