]> git.sur5r.net Git - freertos/blobdiff - Source/portable/GCC/ARM_CM3_MPU/portmacro.h
Add clobber lists to inline asm code.
[freertos] / Source / portable / GCC / ARM_CM3_MPU / portmacro.h
index 02c1adbd3787062aec2989a239ab98ee09d756b1..8aa2a5fe20c0664ad2a01eafd4f46cae680e2a5c 100644 (file)
@@ -103,7 +103,7 @@ extern "C" {
 #define portNUM_CONFIGURABLE_REGIONS           ( ( portLAST_CONFIGURABLE_REGION - portFIRST_CONFIGURABLE_REGION ) + 1 )\r
 #define portTOTAL_NUM_REGIONS                          ( portNUM_CONFIGURABLE_REGIONS + 1 ) /* Plus one to make space for the stack region. */\r
 \r
-#define portSWITCH_TO_USER_MODE() __asm volatile ( " mrs r0, control \n orr r0, #1 \n msr control, r0 " )\r
+#define portSWITCH_TO_USER_MODE() __asm volatile ( " mrs r0, control \n orr r0, #1 \n msr control, r0 " :::"r0" )\r
 \r
 typedef struct MPU_REGION_REGISTERS\r
 {\r