From: arighi Date: Wed, 31 Mar 2010 14:41:54 +0000 (+0000) Subject: CM3: introduce PAUSE macro. X-Git-Tag: 2.5.0~553 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=d0572a80f941a4effe27a75efe1aa30b453cfb57;p=bertos.git CM3: introduce PAUSE macro. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3355 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/cpu/attr.h b/bertos/cpu/attr.h index 8fdcb1c8..ad2945af 100644 --- a/bertos/cpu/attr.h +++ b/bertos/cpu/attr.h @@ -185,11 +185,12 @@ #endif #define NOP asm volatile ("nop") + #define PAUSE asm volatile ("wfi" ::: "memory") #define BREAKPOINT /* asm("bkpt 0") DOES NOT WORK */ /* - * Builtin GCC memset() can be buggy! We need to redefine it here for - * this architecture. :( + * FIXME: builtin GCC memset() can be buggy! We need to redefine it + * here for this architecture. :( */ #include #define memset __cm3_memset