diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2008-05-09 15:54:20 +0000 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gnu.org> | 2009-06-18 00:27:14 +0200 |
commit | 29d53b422954f80c0e06419a5673b000b94385c5 (patch) | |
tree | d3b28aca2d2df5671caf3b0d94e4e72da0ffb6ea /i386 | |
parent | 7a1b5e7dfce7880afddd4f0ac540ab9ad7ba5681 (diff) |
2008-05-09 Andrei Barbu <teval0@gmail.com>
* i386/i386/loose_ends.c (DELAY): Use volatile qualifier instead of
register to prevent optimization.
Diffstat (limited to 'i386')
-rw-r--r-- | i386/i386/loose_ends.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/i386/i386/loose_ends.c b/i386/i386/loose_ends.c index c7d54c3..825303f 100644 --- a/i386/i386/loose_ends.c +++ b/i386/i386/loose_ends.c @@ -40,7 +40,7 @@ int boothowto = 0; /* Someone with time should write code to set cpuspeed automagically */ int cpuspeed = 4; -#define DELAY(n) { register int N = cpuspeed * (n); while (--N > 0); } +#define DELAY(n) { volatile int N = cpuspeed * (n); while (--N > 0); } void delay(n) { |