diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | i386/i386/loose_ends.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2008-05-09 Andrei Barbu <teval0@gmail.com> + + * i386/i386/loose_ends.c (DELAY): Use volatile qualifier instead of + register to prevent optimization. + 2008-03-10 Samuel Thibault <samuel.thibault@ens-lyon.org> * doc/Makefrag.am: Fix typo. 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) { |