1
0
Fork 0
forked from len0rd/rockbox

current_tick really does need to be volatile since gcc can optimize away checking the value otherwise - found out the hard way. :)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13715 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sevakis 2007-06-25 20:46:54 +00:00
parent 2a0f5a4200
commit 6bba70b0ec
3 changed files with 3 additions and 3 deletions

View file

@ -93,7 +93,7 @@ struct mutex
the current_tick variable */
#define current_tick (signed)(USEC_TIMER/10000)
#else
extern long current_tick;
extern volatile long current_tick;
#endif
#ifdef SIMULATOR