X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fsystem%2FSchedulerBasicP.nc;h=9f99fd668e1e9ae1acc57f39374079c1582dad2c;hb=d0ac870a232fc232fb630ad64874aadbf1b244a6;hp=d80968ed473120cf16f53ea35d6268a644a8a01c;hpb=c7c109027e0fd413de7ddaadd8afe670afb33fdf;p=tinyos-2.x.git diff --git a/tos/system/SchedulerBasicP.nc b/tos/system/SchedulerBasicP.nc index d80968ed..9f99fd66 100644 --- a/tos/system/SchedulerBasicP.nc +++ b/tos/system/SchedulerBasicP.nc @@ -53,9 +53,11 @@ implementation NO_TASK = 255, }; - volatile uint8_t m_head; - volatile uint8_t m_tail; - volatile uint8_t m_next[NUM_TASKS]; + uint8_t m_head; + uint8_t m_tail; + uint8_t m_next[NUM_TASKS]; + +#define v_head (*(volatile uint8_t *)&m_head) // Helper functions (internal functions) intentionally do not have atomic // sections. It is left as the duty of the exported interface functions to