projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add first kernel benchmak for at91sam7x-ek board.
[bertos.git]
/
bertos
/
cfg
/
compiler.h
diff --git
a/bertos/cfg/compiler.h
b/bertos/cfg/compiler.h
index bd60c6e79b74f534688c4816526126f835cb2ef7..4d0c33be9a11a6eac62421476db70d5887712b9a 100644
(file)
--- 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))
#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.
*/
/**
* Force compiler to realod context variable.
*/
@@
-448,7
+454,7
@@
typedef unsigned char page_t; /**< Type for banked memory pages. */
#if CPU_X86
/* 32bit or 64bit (32bit for _WIN64). */
typedef long ssize_t;
#if CPU_X86
/* 32bit or 64bit (32bit for _WIN64). */
typedef long ssize_t;
- #elif CPU_ARM
+ #elif CPU_ARM
|| CPU_CM3
typedef int ssize_t;
#elif CPU_AVR
/* 16bit (missing in avr-libc's sys/types.h). */
typedef int ssize_t;
#elif CPU_AVR
/* 16bit (missing in avr-libc's sys/types.h). */