ARM: introduce NAKED() macro.
authorarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 31 Mar 2010 14:41:51 +0000 (14:41 +0000)
committerarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 31 Mar 2010 14:41:51 +0000 (14:41 +0000)
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

bertos/cfg/compiler.h

index 477094d224de1a3e39bd21b31e25b18c5be61b03..4d0c33be9a11a6eac62421476db70d5887712b9a 100644 (file)
        #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.
         */