From: arighi Date: Wed, 31 Mar 2010 14:41:51 +0000 (+0000) Subject: ARM: introduce NAKED() macro. X-Git-Tag: 2.5.0~556 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=b1bb66afd3ad62b7e500dd0016fefbdb09c19706;p=bertos.git ARM: introduce NAKED() macro. This macro can be used on ARM to specify functions that does not need prologue/epilogue. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3352 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/cfg/compiler.h b/bertos/cfg/compiler.h index 477094d2..4d0c33be 100644 --- a/bertos/cfg/compiler.h +++ b/bertos/cfg/compiler.h @@ -181,6 +181,12 @@ #define RESTRICT __restrict__ #define MUST_CHECK __attribute__((warn_unused_result)) #define PACKED __attribute__((packed)) + #if CPU_ARM | CPU_CM3 + #define NAKED __attribute__((naked)) + #else + #define NAKED + #endif + /** * Force compiler to realod context variable. */