]> git.sur5r.net Git - freertos/commitdiff
Change to use the configKERNEL_INTERRUPT_PRIORITY setting.
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Wed, 13 Feb 2008 19:43:30 +0000 (19:43 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Wed, 13 Feb 2008 19:43:30 +0000 (19:43 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@188 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Source/portable/Softune/MB91460/port.c

index 80fe0b17577fdcb27828f35448ef45fdff9e5fcb..90ad448026655e484a07a03122ac7be200f69f9b 100644 (file)
@@ -353,15 +353,20 @@ const unsigned portSHORT usReloadValue = ( unsigned portSHORT ) ( ( ( configPER_
 \r
 void vPortEnterCritical( void )\r
 {\r
-       /* Disable interrupts */\r
-       portDISABLE_INTERRUPTS();\r
+       /* Disable interrupts upto level 30. */\r
+       #if configKERNEL_INTERRUPT_PRIORITY != 30\r
+               #error configKERNEL_INTERRUPT_PRIORITY (set in FreeRTOSConfig.h) must match the ILM value set in the following line - 30 (0x1e) being the default.\r
+       #endif\r
+\r
+       __asm(" STILM #1Eh ");\r
\r
 \r
        /* Now interrupts are disabled ulCriticalNesting can be accessed\r
-        directly.  Increment ulCriticalNesting to keep a count of how many times\r
-        portENTER_CRITICAL() has been called. */\r
+       directly. Increment ulCriticalNesting to keep a count of how many times\r
+       portENTER_CRITICAL() has been called. */\r
        ulCriticalNesting++;\r
 }\r
-/*-----------------------------------------------------------*/\r
+/*-----------------------------------------------------------*/ \r
 \r
 void vPortExitCritical( void )\r
 {\r
@@ -370,9 +375,8 @@ void vPortExitCritical( void )
                ulCriticalNesting--;\r
                if( ulCriticalNesting == portNO_CRITICAL_NESTING )\r
                {\r
-                       /* Enable all interrupt/exception. */\r
-                       portENABLE_INTERRUPTS();\r
+                       /* Enable all interrupts */\r
+                       __asm(" STILM #1Fh ");\r
                }\r
        }\r
 }\r
-/*-----------------------------------------------------------*/\r