From d0572a80f941a4effe27a75efe1aa30b453cfb57 Mon Sep 17 00:00:00 2001 From: arighi Date: Wed, 31 Mar 2010 14:41:54 +0000 Subject: [PATCH] CM3: introduce PAUSE macro. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3355 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/cpu/attr.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.25.1