Declare volatile variables modified by interrupt routines
authorPatrice Mandin
Sun, 30 Apr 2006 21:01:25 +0000
changeset 1751a11c13151840
parent 1750 025e1a273f47
child 1752 97f20f2a1d85
Declare volatile variables modified by interrupt routines
src/audio/mint/SDL_mintaudio.h
src/video/ataricommon/SDL_ikbdinterrupt_s.h
src/video/ataricommon/SDL_xbiosinterrupt_s.h
     1.1 --- a/src/audio/mint/SDL_mintaudio.h	Sun Apr 30 16:53:40 2006 +0000
     1.2 +++ b/src/audio/mint/SDL_mintaudio.h	Sun Apr 30 21:01:25 2006 +0000
     1.3 @@ -119,10 +119,10 @@
     1.4  extern SDL_AudioDevice *SDL_MintAudio_device;
     1.5  extern Uint8 *SDL_MintAudio_audiobuf[2];	/* Pointers to buffers */
     1.6  extern unsigned long SDL_MintAudio_audiosize;		/* Length of audio buffer=spec->size */
     1.7 -extern unsigned short SDL_MintAudio_numbuf;		/* Buffer to play */
     1.8 -extern unsigned short SDL_MintAudio_mutex;
     1.9 +extern volatile unsigned short SDL_MintAudio_numbuf;		/* Buffer to play */
    1.10 +extern volatile unsigned short SDL_MintAudio_mutex;
    1.11  extern cookie_stfa_t *SDL_MintAudio_stfa;
    1.12 -extern unsigned long SDL_MintAudio_clocktics;
    1.13 +extern volatile unsigned long SDL_MintAudio_clocktics;
    1.14  
    1.15  /* MiNT thread variables */
    1.16  extern SDL_bool	SDL_MintAudio_mint_present;
     2.1 --- a/src/video/ataricommon/SDL_ikbdinterrupt_s.h	Sun Apr 30 16:53:40 2006 +0000
     2.2 +++ b/src/video/ataricommon/SDL_ikbdinterrupt_s.h	Sun Apr 30 21:01:25 2006 +0000
     2.3 @@ -44,14 +44,14 @@
     2.4  
     2.5  /* Variables */
     2.6  
     2.7 -extern Uint8  SDL_AtariIkbd_keyboard[128];	/* Keyboard table */
     2.8 -extern Uint16 SDL_AtariIkbd_mouseb;	/* Mouse on port 0, buttons */
     2.9 -extern Sint16 SDL_AtariIkbd_mousex;	/* Mouse X relative motion */
    2.10 -extern Sint16 SDL_AtariIkbd_mousey;	/* Mouse Y relative motion */
    2.11 -extern Uint16 SDL_AtariIkbd_joystick;	/* Joystick on port 1 */
    2.12 +extern volatile Uint8  SDL_AtariIkbd_keyboard[128];	/* Keyboard table */
    2.13 +extern volatile Uint16 SDL_AtariIkbd_mouseb;	/* Mouse on port 0, buttons */
    2.14 +extern volatile Sint16 SDL_AtariIkbd_mousex;	/* Mouse X relative motion */
    2.15 +extern volatile Sint16 SDL_AtariIkbd_mousey;	/* Mouse Y relative motion */
    2.16 +extern volatile Uint16 SDL_AtariIkbd_joystick;	/* Joystick on port 1 */
    2.17  
    2.18 -extern Uint16 SDL_AtariIkbd_enabled;	/* For joystick driver to know
    2.19 -											if this is usable */
    2.20 +/* For joystick driver to know if this is usable */
    2.21 +extern Uint16 SDL_AtariIkbd_enabled;
    2.22  										
    2.23  /* Functions */ 
    2.24  
     3.1 --- a/src/video/ataricommon/SDL_xbiosinterrupt_s.h	Sun Apr 30 16:53:40 2006 +0000
     3.2 +++ b/src/video/ataricommon/SDL_xbiosinterrupt_s.h	Sun Apr 30 21:01:25 2006 +0000
     3.3 @@ -36,10 +36,10 @@
     3.4  
     3.5  /* Variables */
     3.6  
     3.7 -extern Uint16 SDL_AtariXbios_mouseb;	/* buttons */
     3.8 -extern Sint16 SDL_AtariXbios_mousex;	/* X relative motion */
     3.9 -extern Sint16 SDL_AtariXbios_mousey;	/* Y relative motion */
    3.10 -extern Uint16 SDL_AtariXbios_joystick;	/* Joystick */
    3.11 +extern volatile Uint16 SDL_AtariXbios_mouseb;	/* buttons */
    3.12 +extern volatile Sint16 SDL_AtariXbios_mousex;	/* X relative motion */
    3.13 +extern volatile Sint16 SDL_AtariXbios_mousey;	/* Y relative motion */
    3.14 +extern volatile Uint16 SDL_AtariXbios_joystick;	/* Joystick */
    3.15  
    3.16  /* Functions */ 
    3.17