CYGPKG_CPULOAD fixes
Lars Povlsen
lpovlsen@vitesse.com
Mon Mar 29 09:32:00 GMT 2010
Here's a small fix to the cpuload package (and idle thread).
In short, a missing 'volatile' attribute to the loop counter causes
newer (arm-eabi GCC 4.2.3/eCosentric toolchain) to produce wrong
results.
This patch adds a volatile modifier to idle_thread_loops[], and updates
the reference to it from the cpuload package. (which was also using a
non-array declaration).
Cheers,
Lars Povlsen
Vitesse Semiconductor Corp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cpuload.diff
Type: application/octet-stream
Size: 4371 bytes
Desc: cpuload.diff
URL: <http://sourceware.org/pipermail/ecos-patches/attachments/20100329/a618794e/attachment.obj>
More information about the Ecos-patches
mailing list