[U-Boot] [PATCH 3/4] x86: Force the lib_sysinfo structure to be in the .data section

Mike Frysinger vapier at gentoo.org
Sun Jan 8 06:19:48 CET 2012


On Wednesday 30 November 2011 01:07:54 Gabe Black wrote:
> +struct sysinfo_t lib_sysinfo __attribute__((section(".data")));

seems like it should be .data.lib_sysinfo

or maybe pick a field you always init and set it to something non-zero.
struct sysinfo_t lib_sysinfo = {
	/* force into .data */
	.cpu_khz = 1,
};
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120108/ab4a754a/attachment.pgp>


More information about the U-Boot mailing list