aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
Diffstat (limited to 'os')
-rw-r--r--os/nil/include/nil.h2
-rw-r--r--os/nil/ports/e200/nilcore.h2
2 files changed, 1 insertions, 3 deletions
diff --git a/os/nil/include/nil.h b/os/nil/include/nil.h
index 15850a915..99dfc7f96 100644
--- a/os/nil/include/nil.h
+++ b/os/nil/include/nil.h
@@ -402,7 +402,7 @@ struct nil_system {
/**
* @brief System time.
*/
- systime_t systime;
+ volatile systime_t systime;
#endif
#if (NIL_CFG_ST_TIMEDELTA > 0) || defined(__DOXYGEN__)
/**
diff --git a/os/nil/ports/e200/nilcore.h b/os/nil/ports/e200/nilcore.h
index 3405a9bc5..053522743 100644
--- a/os/nil/ports/e200/nilcore.h
+++ b/os/nil/ports/e200/nilcore.h
@@ -502,9 +502,7 @@ static inline void port_enable(void) {
*/
static inline void port_wait_for_interrupt(void) {
-#if PPC_ENABLE_WFI_IDLE
asm volatile ("wait" : : : "memory");
-#endif
}
/**