src/timer/mint/SDL_systimer.c
changeset 2052 eb5e61b72da3
parent 1895 c121d94672cb
child 2115 502ae1f2a577
equal deleted inserted replaced
2051:c03f1446e897 2052:eb5e61b72da3
    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() ? */
   122 {
   125 {
   123     void *oldpile;
   126     void *oldpile;
   124 
   127 
   125     supervisor = SDL_FALSE;
   128     supervisor = SDL_FALSE;
   126 
   129 
       
   130     SDL_MintAudio_CheckFpu();
       
   131 
   127     /* Install RunTimer in vbl vector */
   132     /* Install RunTimer in vbl vector */
   128     oldpile = (void *) Super(0);
   133     oldpile = (void *) Super(0);
   129     timer_installed = !SDL_AtariVblInstall(RunTimer);
   134     timer_installed = !SDL_AtariVblInstall(RunTimer);
   130     Super(oldpile);
   135     Super(oldpile);
   131 
   136