From 8c0a1254b34625f65ee5a670d18487307cab4029 Mon Sep 17 00:00:00 2001 From: richardbarry Date: Sat, 30 May 2009 13:26:38 +0000 Subject: [PATCH] Add portENTER_CRITICAL() macro. Previously it was an inline asm function but it needs to be a macro for portable.h to compile. 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 | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Source/portable/oWatcom/16BitDOS/PC/portmacro.h b/Source/portable/oWatcom/16BitDOS/PC/portmacro.h index 74c82d0f9..5a4803953 100644 --- a/Source/portable/oWatcom/16BitDOS/PC/portmacro.h +++ b/Source/portable/oWatcom/16BitDOS/PC/portmacro.h @@ -84,10 +84,13 @@ extern "C" { #endif /*-----------------------------------------------------------*/ -/* Critical section definitions. */ -void portENTER_CRITICAL( void ); -#pragma aux portENTER_CRITICAL = "pushf" \ +/* Critical section definitions. portENTER_CRITICAL() must be defined as a +macro for portable.h to work properly. */ +void portLOCAL_ENTER_CRITICAL( void ); +#pragma aux portLOCAL_ENTER_CRITICAL = "pushf" \ "cli"; +#define portENTER_CRITICAL() portLOCAL_ENTER_CRITICAL() + void portEXIT_CRITICAL( void ); #pragma aux portEXIT_CRITICAL = "popf"; -- 2.39.2