Skip to content

Commit

Permalink
Blackfin arch: make sure cycles is marked as volatile so gcc doesnt r…
Browse files Browse the repository at this point in the history
…eorder on us

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
  • Loading branch information
Mike Frysinger authored and Bryan Wu committed Oct 16, 2008
1 parent ed061b7 commit 1390da4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/blackfin/include/asm/timex.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ typedef unsigned long long cycles_t;
static inline cycles_t get_cycles(void)
{
unsigned long tmp, tmp2;
__asm__("%0 = cycles; %1 = cycles2;" : "=d"(tmp), "=d"(tmp2));
__asm__ __volatile__("%0 = cycles; %1 = cycles2;" : "=d"(tmp), "=d"(tmp2));
return tmp | ((cycles_t)tmp2 << 32);
}

Expand Down

0 comments on commit 1390da4

Please sign in to comment.