]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/CORTEX_SmartFusion2_M2S050_SoftConsole/RTOSDemo_Hardware_Platform/hal/CortexM3/GNU/hal.s
Add missing +TCP code.
[freertos] / FreeRTOS / Demo / CORTEX_SmartFusion2_M2S050_SoftConsole / RTOSDemo_Hardware_Platform / hal / CortexM3 / GNU / hal.s
1 #-------------------------------------------------------------------------------\r
2 # (c) Copyright 2007-2013 Microsemi SoC Products Group. All rights reserved.\r
3\r
4 # Interrupt disabling/restoration for critical section protection.\r
5 #\r
6 # SVN $Revision: 5258 $\r
7 # SVN $Date: 2013-03-21 12:41:02 +0000 (Thu, 21 Mar 2013) $\r
8 #\r
9     .text\r
10     .global HAL_disable_interrupts\r
11     .global HAL_restore_interrupts\r
12     .code 16\r
13     .syntax unified\r
14     .type HAL_disable_interrupts, function\r
15     .type HAL_restore_interrupts, function\r
16 #-------------------------------------------------------------------------------\r
17\r
18 #\r
19 HAL_disable_interrupts:    \r
20     mrs r0, PRIMASK\r
21     cpsid I\r
22     bx lr\r
23 \r
24 #-------------------------------------------------------------------------------\r
25 #\r
26 #\r
27 HAL_restore_interrupts:    \r
28     msr PRIMASK, r0\r
29     bx lr\r
30 \r
31 .end\r