diff options
-rw-r--r-- | apps/plugin.h | 2 | ||||
-rw-r--r-- | firmware/export/kernel.h | 2 | ||||
-rw-r--r-- | firmware/kernel.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index a95d80b7aa..3b9ca03e32 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -334,7 +334,7 @@ struct plugin_api { | |||
334 | #ifdef HAVE_PRIORITY_SCHEDULING | 334 | #ifdef HAVE_PRIORITY_SCHEDULING |
335 | void (*priority_yield)(void); | 335 | void (*priority_yield)(void); |
336 | #endif | 336 | #endif |
337 | long* current_tick; | 337 | volatile long* current_tick; |
338 | long (*default_event_handler)(long event); | 338 | long (*default_event_handler)(long event); |
339 | long (*default_event_handler_ex)(long event, void (*callback)(void *), void *parameter); | 339 | long (*default_event_handler_ex)(long event, void (*callback)(void *), void *parameter); |
340 | struct thread_entry* threads; | 340 | struct thread_entry* threads; |
diff --git a/firmware/export/kernel.h b/firmware/export/kernel.h index a77ca312bd..9e3a8d25df 100644 --- a/firmware/export/kernel.h +++ b/firmware/export/kernel.h | |||
@@ -93,7 +93,7 @@ struct mutex | |||
93 | the current_tick variable */ | 93 | the current_tick variable */ |
94 | #define current_tick (signed)(USEC_TIMER/10000) | 94 | #define current_tick (signed)(USEC_TIMER/10000) |
95 | #else | 95 | #else |
96 | extern long current_tick; | 96 | extern volatile long current_tick; |
97 | #endif | 97 | #endif |
98 | 98 | ||
99 | #ifdef SIMULATOR | 99 | #ifdef SIMULATOR |
diff --git a/firmware/kernel.c b/firmware/kernel.c index 5841f8975e..fcee53f331 100644 --- a/firmware/kernel.c +++ b/firmware/kernel.c | |||
@@ -26,7 +26,7 @@ | |||
26 | #include "panic.h" | 26 | #include "panic.h" |
27 | 27 | ||
28 | #if !defined(CPU_PP) || !defined(BOOTLOADER) | 28 | #if !defined(CPU_PP) || !defined(BOOTLOADER) |
29 | long current_tick NOCACHEDATA_ATTR = 0; | 29 | volatile long current_tick NOCACHEDATA_ATTR = 0; |
30 | #endif | 30 | #endif |
31 | 31 | ||
32 | static void (*tick_funcs[MAX_NUM_TICK_TASKS])(void); | 32 | static void (*tick_funcs[MAX_NUM_TICK_TASKS])(void); |