This is the mail archive of the ecos-patches@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

CYGPKG_CPULOAD fixes


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

Attachment: cpuload.diff
Description: cpuload.diff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]