FreeCalypso > hg > fc-magnetite
comparison src/gpf2/osl/os_tim_fl.c @ 501:c4117b996197
OSL: os_tim_fl.c compiles
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 24 Jun 2018 23:53:33 +0000 |
parents | 91e8dac34ada |
children |
comparison
equal
deleted
inserted
replaced
500:094ecae40880 | 501:c4117b996197 |
---|---|
4 * subsequently reworked by Space Falcon. | 4 * subsequently reworked by Space Falcon. |
5 */ | 5 */ |
6 | 6 |
7 /* set of included headers from COFF symtab: */ | 7 /* set of included headers from COFF symtab: */ |
8 #include <stdio.h> | 8 #include <stdio.h> |
9 #include "gpfconf.h" /* FreeCalypso addition */ | 9 #include "nucleus.h" |
10 #include "../../nucleus/nucleus.h" | |
11 #include "typedefs.h" | 10 #include "typedefs.h" |
12 #include "os.h" | 11 #include "os.h" |
13 #include "gdi.h" | 12 #include "gdi.h" |
14 #include "os_types.h" | 13 #include "os_types.h" |
15 #include "os_glob.h" | 14 #include "os_glob.h" |
33 int volatile t_list_access; | 32 int volatile t_list_access; |
34 int max_used_timers; | 33 int max_used_timers; |
35 NU_SEMAPHORE TimSemCB; | 34 NU_SEMAPHORE TimSemCB; |
36 NU_TIMER os_timer_cb; | 35 NU_TIMER os_timer_cb; |
37 | 36 |
37 #ifdef __GNUC__ | |
38 #define BARRIER asm volatile ("": : :"memory") | 38 #define BARRIER asm volatile ("": : :"memory") |
39 #else | |
40 #define BARRIER /* prayer */ | |
41 #endif | |
39 | 42 |
40 GLOBAL LONG | 43 GLOBAL LONG |
41 os_set_tick(int os_system_tick) | 44 os_set_tick(int os_system_tick) |
42 { | 45 { |
43 switch (os_system_tick) { | 46 switch (os_system_tick) { |