diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2012-08-14 11:35:01 -0400 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2012-08-14 11:35:01 -0400 |
commit | 4b537d6762a27f7b6441c9bf2af511519f1e1456 (patch) | |
tree | bda309dad420d82b1e74412466be7bf3f5244c36 /libmaple | |
parent | 276baf8d43a9a4fd4a7296707715b028cf64f564 (diff) | |
download | librambutan-4b537d6762a27f7b6441c9bf2af511519f1e1456.tar.gz librambutan-4b537d6762a27f7b6441c9bf2af511519f1e1456.zip |
Make PRIMASK set/clear functions __always_inline.
This is just to ensure that -Os doesn't prevent these from getting
inlined.
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'libmaple')
-rw-r--r-- | libmaple/include/libmaple/nvic.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libmaple/include/libmaple/nvic.h b/libmaple/include/libmaple/nvic.h index ac102d9..ffe385d 100644 --- a/libmaple/include/libmaple/nvic.h +++ b/libmaple/include/libmaple/nvic.h @@ -107,14 +107,14 @@ void nvic_sys_reset(); /** * Enables interrupts and configurable fault handlers (clear PRIMASK). */ -static inline void nvic_globalirq_enable() { +static __always_inline void nvic_globalirq_enable() { asm volatile("cpsie i"); } /** * Disable interrupts and configurable fault handlers (set PRIMASK). */ -static inline void nvic_globalirq_disable() { +static __always_inline void nvic_globalirq_disable() { asm volatile("cpsid i"); } |