From c5ad94e47629d9dafa960a60be5652c0ec602999 Mon Sep 17 00:00:00 2001 From: P L Sai Krishna Date: Thu, 26 Feb 2015 11:24:02 +0530 Subject: [PATCH] nandps_v2_2: 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 f6907cd7..7544c5f4 100644 --- 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 ******************************/