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:
parent
2a0f5a4200
commit
6bba70b0ec
3 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue