comparison src/timer/mint/SDL_systimer.c @ 3883:cfe850b334e7 SDL-1.2

Also save/restore fpu register in vbl interrupt
author Patrice Mandin <patmandin@gmail.com>
date Sat, 21 Oct 2006 18:53:33 +0000
parents 92947e3a18db
children 649fba69eccd
comparison
equal deleted inserted replaced
3882:842b03d703c5 3883:cfe850b334e7
45 #include "SDL_timer.h" 45 #include "SDL_timer.h"
46 #include "../SDL_timer_c.h" 46 #include "../SDL_timer_c.h"
47 #include "SDL_thread.h" 47 #include "SDL_thread.h"
48 48
49 #include "SDL_vbltimer_s.h" 49 #include "SDL_vbltimer_s.h"
50
51 /* from audio/mint */
52 void SDL_MintAudio_CheckFpu(void);
50 53
51 /* The first ticks value of the application */ 54 /* The first ticks value of the application */
52 static Uint32 start; 55 static Uint32 start;
53 static SDL_bool supervisor; 56 static SDL_bool supervisor;
54 static int mint_present; /* can we use Syield() ? */ 57 static int mint_present; /* can we use Syield() ? */
117 { 120 {
118 void *oldpile; 121 void *oldpile;
119 122
120 supervisor=SDL_FALSE; 123 supervisor=SDL_FALSE;
121 124
125 SDL_MintAudio_CheckFpu();
126
122 /* Install RunTimer in vbl vector */ 127 /* Install RunTimer in vbl vector */
123 oldpile=(void *)Super(0); 128 oldpile=(void *)Super(0);
124 timer_installed = !SDL_AtariVblInstall(RunTimer); 129 timer_installed = !SDL_AtariVblInstall(RunTimer);
125 Super(oldpile); 130 Super(oldpile);
126 131