aboutsummaryrefslogtreecommitdiffstats
path: root/os/ports
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-08-31 19:01:07 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-08-31 19:01:07 +0000
commit030710ca459a9baf8385bc36afb8a96c597ad74c (patch)
treebdc3b5e6d5844f79d87de180e4dd62eb7acb98bd /os/ports
parent58e000a8366bad3848fe20e84b3cee95836861b1 (diff)
downloadChibiOS-030710ca459a9baf8385bc36afb8a96c597ad74c.tar.gz
ChibiOS-030710ca459a9baf8385bc36afb8a96c597ad74c.tar.bz2
ChibiOS-030710ca459a9baf8385bc36afb8a96c597ad74c.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2154 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/ports')
-rw-r--r--os/ports/GCC/AVR/chcore.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/os/ports/GCC/AVR/chcore.h b/os/ports/GCC/AVR/chcore.h
index 047fd1a9d..a974b5a1a 100644
--- a/os/ports/GCC/AVR/chcore.h
+++ b/os/ports/GCC/AVR/chcore.h
@@ -235,7 +235,7 @@ struct context {
* actions.
* @note Implemented as global interrupt disable.
*/
-#define port_lock() asm volatile ("cli")
+#define port_lock() asm volatile ("cli" : : : "memory")
/**
* @brief Kernel-unlock action.
@@ -243,7 +243,7 @@ struct context {
* actions.
* @note Implemented as global interrupt enable.
*/
-#define port_unlock() asm volatile ("sei")
+#define port_unlock() asm volatile ("sei" : : : "memory")
/**
* @brief Kernel-lock action from an interrupt handler.
@@ -268,7 +268,7 @@ struct context {
* @note Of course non maskable interrupt sources are not included.
* @note Implemented as global interrupt disable.
*/
-#define port_disable() asm volatile ("cli")
+#define port_disable() asm volatile ("cli" : : : "memory")
/**
* @brief Disables the interrupt sources below kernel-level priority.
@@ -276,13 +276,13 @@ struct context {
* @note Same as @p port_disable() in this port, there is no difference
* between the two states.
*/
-#define port_suspend() asm volatile ("cli")
+#define port_suspend() asm volatile ("cli" : : : "memory")
/**
* @brief Enables all the interrupt sources.
* @note Implemented as global interrupt enable.
*/
-#define port_enable() asm volatile ("sei")
+#define port_enable() asm volatile ("sei" : : : "memory")
/**
* @brief Enters an architecture-dependent IRQ-waiting mode.
@@ -294,8 +294,8 @@ struct context {
* reasons.
*/
#if ENABLE_WFI_IDLE != 0
-#define port_wait_for_interrupt() { \
- asm volatile ("sleep"); \
+#define port_wait_for_interrupt() { \
+ asm volatile ("sleep" : : : "memory"); \
}
#else
#define port_wait_for_interrupt()