/*\r
- FreeRTOS.org V4.0.4 - Copyright (C) 2003-2006 Richard Barry.\r
+ FreeRTOS.org V4.3.0 - Copyright (C) 2003-2007 Richard Barry.\r
\r
This file is part of the FreeRTOS.org distribution.\r
\r
See http://www.FreeRTOS.org for documentation, latest information, license\r
and contact details. Please ensure to read the configuration and relevant\r
port sections of the online documentation.\r
+\r
+ Also see http://www.SafeRTOS.com for an IEC 61508 compliant version along\r
+ with commercial development and support options.\r
***************************************************************************\r
*/\r
\r
/*-----------------------------------------------------------*/ \r
\r
/* Critical section management. */\r
-#define portENTER_CRITICAL() asm( "in r15, 3fh" ); \\r
- asm( "cli" ); \\r
- asm( "st -y, r15" )\r
-\r
-#define portEXIT_CRITICAL() asm( "ld r15, y+" ); \\r
- asm( "out 3fh, r15" )\r
+extern void vPortEnterCritical( void );\r
+extern void vPortExitCritical( void );\r
+#define portENTER_CRITICAL() vPortEnterCritical()\r
+#define portEXIT_CRITICAL() vPortExitCritical()\r
\r
-#define portDISABLE_INTERRUPTS() asm( "cli" );\r
-#define portENABLE_INTERRUPTS() asm( "sti" );\r
+#define portDISABLE_INTERRUPTS() asm( "cli" )\r
+#define portENABLE_INTERRUPTS() asm( "sei" )\r
/*-----------------------------------------------------------*/\r
\r
/* Architecture specifics. */\r