From fc1765fd83d3f133477fc594d25dbb5d4ba60c62 Mon Sep 17 00:00:00 2001 From: P L Sai Krishna Date: Thu, 26 Feb 2015 11:24:02 +0530 Subject: [PATCH] nandps: Removed IAR compilation errors. This patch removes the IAR compilation errors. Modified the OnfiNand_Geometry structure declaration according to IAR compiler Signed-off-by: P L Sai Krishna --- XilinxProcessorIPLib/drivers/nandps/src/xnandps_onfi.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/XilinxProcessorIPLib/drivers/nandps/src/xnandps_onfi.h b/XilinxProcessorIPLib/drivers/nandps/src/xnandps_onfi.h index 2ebe2374..2caf60cd 100755 --- a/XilinxProcessorIPLib/drivers/nandps/src/xnandps_onfi.h +++ b/XilinxProcessorIPLib/drivers/nandps/src/xnandps_onfi.h @@ -212,6 +212,9 @@ enum OnfiCommandsEnum { * Parameter page structure of ONFI 1.0 specification. * Enhanced this sturcture to include ONFI 2.3 information for EZ NAND support. */ +#ifdef __ICCARM__ +#pragma pack(push, 1) +#endif typedef struct { /* * Revision information and features block @@ -303,7 +306,12 @@ typedef struct { number */ u8 VendorSpecific[88]; /**< Vendor specific */ u16 Crc; /**< Integrity CRC */ +#ifdef __ICCARM__ +} OnfiNand_Geometry; +#pragma pack(pop) +#else }__attribute__((packed))OnfiNand_Geometry; +#endif /************************** Function Prototypes ******************************/