Update preset.
[bertos.git] / bertos / cpu / power.h
index d73eb621a785ef17629ff03e25748820983d476f..f161c698f40ebf14f261d4b77323138e45f98cfb 100644 (file)
@@ -40,6 +40,8 @@
 #include "cfg/cfg_proc.h"
 #include "cfg/cfg_wdt.h"
 
+#include <cfg/compiler.h>
+
 #if CONFIG_KERN
        #include <kern/proc.h>
 #endif
@@ -66,6 +68,7 @@
  */
 INLINE void cpu_relax(void)
 {
+       MEMORY_BARRIER;
 #if CONFIG_KERN
        if (proc_preemptAllowed())
                proc_yield();