Set supervisor as volatile as it is modified from an interrupt SDL-1.2
authorPatrice Mandin <patmandin@gmail.com>
Fri, 08 Jun 2007 21:44:40 +0000
branchSDL-1.2
changeset 3954 649fba69eccd
parent 3953 d3c1161652d5
child 3955 40b6b5744e05
Set supervisor as volatile as it is modified from an interrupt
src/timer/mint/SDL_systimer.c
--- a/src/timer/mint/SDL_systimer.c	Mon Jun 04 11:43:47 2007 +0000
+++ b/src/timer/mint/SDL_systimer.c	Fri Jun 08 21:44:40 2007 +0000
@@ -53,7 +53,7 @@
 
 /* The first ticks value of the application */
 static Uint32 start;
-static SDL_bool supervisor;
+static volatile SDL_bool supervisor;
 static int mint_present; /* can we use Syield() ? */
 
 void SDL_StartTicks(void)