From 210e302c8c65ebded42c1b1b0d6dc01235625548 Mon Sep 17 00:00:00 2001 From: richardbarry Date: Fri, 8 Jan 2010 14:25:12 +0000 Subject: [PATCH] Change "SWI" to "SWI 0". git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@949 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- Source/portable/GCC/ARM7_AT91FR40008/portmacro.h | 2 +- Source/portable/GCC/ARM7_AT91SAM7S/portmacro.h | 2 +- Source/portable/GCC/ARM7_LPC2000/portmacro.h | 2 +- Source/portable/GCC/ARM7_LPC23xx/portmacro.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/portable/GCC/ARM7_AT91FR40008/portmacro.h b/Source/portable/GCC/ARM7_AT91FR40008/portmacro.h index 0d523721c..a4ae53465 100644 --- a/Source/portable/GCC/ARM7_AT91FR40008/portmacro.h +++ b/Source/portable/GCC/ARM7_AT91FR40008/portmacro.h @@ -113,7 +113,7 @@ extern "C" { #define portSTACK_GROWTH ( -1 ) #define portTICK_RATE_MS ( ( portTickType ) 1000 / configTICK_RATE_HZ ) #define portBYTE_ALIGNMENT 8 -#define portYIELD() asm volatile ( "SWI" ) +#define portYIELD() asm volatile ( "SWI 0" ) #define portNOP() asm volatile ( "NOP" ) /* diff --git a/Source/portable/GCC/ARM7_AT91SAM7S/portmacro.h b/Source/portable/GCC/ARM7_AT91SAM7S/portmacro.h index 6a8a3a7b5..4393dc147 100644 --- a/Source/portable/GCC/ARM7_AT91SAM7S/portmacro.h +++ b/Source/portable/GCC/ARM7_AT91SAM7S/portmacro.h @@ -211,7 +211,7 @@ extern volatile unsigned portLONG ulCriticalNesting; \ #define portYIELD_FROM_ISR() vTaskSwitchContext() -#define portYIELD() asm volatile ( "SWI" ) +#define portYIELD() asm volatile ( "SWI 0" ) /*-----------------------------------------------------------*/ diff --git a/Source/portable/GCC/ARM7_LPC2000/portmacro.h b/Source/portable/GCC/ARM7_LPC2000/portmacro.h index 62596db50..9b6889b93 100644 --- a/Source/portable/GCC/ARM7_LPC2000/portmacro.h +++ b/Source/portable/GCC/ARM7_LPC2000/portmacro.h @@ -188,7 +188,7 @@ extern volatile unsigned portLONG ulCriticalNesting; \ extern void vTaskSwitchContext( void ); #define portYIELD_FROM_ISR() vTaskSwitchContext() -#define portYIELD() __asm volatile ( "SWI" ) +#define portYIELD() __asm volatile ( "SWI 0" ) /*-----------------------------------------------------------*/ diff --git a/Source/portable/GCC/ARM7_LPC23xx/portmacro.h b/Source/portable/GCC/ARM7_LPC23xx/portmacro.h index 9f049de11..bc591c3ed 100644 --- a/Source/portable/GCC/ARM7_LPC23xx/portmacro.h +++ b/Source/portable/GCC/ARM7_LPC23xx/portmacro.h @@ -211,7 +211,7 @@ extern volatile unsigned portLONG ulCriticalNesting; \ #define portYIELD_FROM_ISR() vTaskSwitchContext() -#define portYIELD() __asm volatile ( "SWI" ) +#define portYIELD() __asm volatile ( "SWI 0" ) /*-----------------------------------------------------------*/ -- 2.39.5