From b1bb66afd3ad62b7e500dd0016fefbdb09c19706 Mon Sep 17 00:00:00 2001 From: arighi Date: Wed, 31 Mar 2010 14:41:51 +0000 Subject: [PATCH] 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 --- bertos/cfg/compiler.h | 6 ++++++ 1 file changed, 6 insertions(+) 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. */ -- 2.25.1