]> git.sur5r.net Git - freertos/commitdiff
Add portENTER_CRITICAL() macro. Previously it was an inline asm function but it...
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Sat, 30 May 2009 13:26:38 +0000 (13:26 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Sat, 30 May 2009 13:26:38 +0000 (13:26 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@752 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Source/portable/oWatcom/16BitDOS/PC/portmacro.h

index 74c82d0f957653c92d085f30e96be186f6672f29..5a4803953a7255989734ad493b5cac936d7ce328 100644 (file)
@@ -84,10 +84,13 @@ extern "C" {
 #endif\r
 /*-----------------------------------------------------------*/\r
 \r
-/* Critical section definitions. */\r
-void portENTER_CRITICAL( void );\r
-#pragma aux portENTER_CRITICAL =               "pushf" \\r
+/* Critical section definitions.  portENTER_CRITICAL() must be defined as a\r
+macro for portable.h to work properly. */\r
+void portLOCAL_ENTER_CRITICAL( void );\r
+#pragma aux portLOCAL_ENTER_CRITICAL =         "pushf" \\r
                                                                                "cli";\r
+#define portENTER_CRITICAL() portLOCAL_ENTER_CRITICAL()\r
+                                                                               \r
 void portEXIT_CRITICAL( void );\r
 #pragma aux portEXIT_CRITICAL  =               "popf";\r
 \r