From: Wen-chien Jesse Sung Date: Mon, 10 Jul 2006 15:55:17 +0800 Subject: [U-Boot-Users] [PATCH] fix for DECLARE_GLOBAL_DATA_PTR on i386. Message-ID: <44B207E5.1030905@cola.voip.idv.tw> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi, gcc complains that glocbal_data is not constant, so it can't be used to initialize gd. sc520_cdp.c:33: error: initializer element is not constant Instead of using a global global_data and a local gd, this patch uses a global gd only. CHANGELOG * Use only one global gd pointer for global_data on i386. -- Best Regards, Wen-chien Jesse Sung -------------- next part -------------- A non-text attachment was scrubbed... Name: 0003-fix-for-DECLARE_GLOBAL_DATA_PTR-on-i386.txt.gz Type: application/x-gzip Size: 912 bytes Desc: not available Url : http://lists.denx.de/pipermail/u-boot/attachments/20060710/ed015991/attachment.bin