Skip to contentSkip to conversation

fix for DECLARE_GLOBAL_DATA_PTR on i386.

PATCH New Wen-chien Jesse Sung 1 participant 1 message Jul 10, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix for DECLARE_GLOBAL_DATA_PTR on i386.

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.

Signature · 9 lines
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