X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdevices%2Ftimer.c;fp=src%2Fdevices%2Ftimer.c;h=070c487328a61e10a8e6a86390703f4dd289173b;hb=db7d1db11685c1dc0d97c41049d26b876211551b;hp=c8c41d55cf412948eb71a04b52c748f0c554465d;hpb=d6d7ad6b1cf3a6f08b89ef90a0ad9d68bb86888c;p=pintos-anon diff --git a/src/devices/timer.c b/src/devices/timer.c index c8c41d5..070c487 100644 --- a/src/devices/timer.c +++ b/src/devices/timer.c @@ -162,7 +162,7 @@ too_many_loops (unsigned loops) differently in different places the results would be difficult to predict. */ static void NO_INLINE -busy_wait (int64_t loops) +busy_wait (volatile int64_t loops) { while (loops-- > 0) continue;