root/webserver/example/freeRTOS/Source/portable/Rowley/MSP430F449/portasm.h

Revision 14, 3.0 kB (checked in by phil, 15 years ago)

added unmodified FreeRTOS package V5.4.1 with only web srv demo source for LPC2368 for CrossWorks?

Line 
1 /*
2         FreeRTOS V5.4.1 - Copyright (C) 2009 Real Time Engineers Ltd.
3
4         This file is part of the FreeRTOS distribution.
5
6         FreeRTOS is free software; you can redistribute it and/or modify it     under
7         the terms of the GNU General Public License (version 2) as published by the
8         Free Software Foundation and modified by the FreeRTOS exception.
9         **NOTE** The exception to the GPL is included to allow you to distribute a
10         combined work that includes FreeRTOS without being obliged to provide the
11         source code for proprietary components outside of the FreeRTOS kernel. 
12         Alternative commercial license and support terms are also available upon
13         request.  See the licensing section of http://www.FreeRTOS.org for full
14         license details.
15
16         FreeRTOS is distributed in the hope that it will be useful,     but WITHOUT
17         ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18         FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
19         more details.
20
21         You should have received a copy of the GNU General Public License along
22         with FreeRTOS; if not, write to the Free Software Foundation, Inc., 59
23         Temple Place, Suite 330, Boston, MA  02111-1307  USA.
24
25
26         ***************************************************************************
27         *                                                                         *
28         * Looking for a quick start?  Then check out the FreeRTOS eBook!          *
29         * See http://www.FreeRTOS.org/Documentation for details                   *
30         *                                                                         *
31         ***************************************************************************
32
33         1 tab == 4 spaces!
34
35         Please ensure to read the configuration and relevant port sections of the
36         online documentation.
37
38         http://www.FreeRTOS.org - Documentation, latest information, license and
39         contact details.
40
41         http://www.SafeRTOS.com - A version that is certified for use in safety
42         critical systems.
43
44         http://www.OpenRTOS.com - Commercial support, development, porting,
45         licensing and training services.
46 */
47
48 #ifndef PORT_ASM_H
49 #define PORT_ASM_H
50
51 portSAVE_CONTEXT macro
52                 /* Save the remaining registers. */
53                 push    r4
54                 push    r5
55                 push    r6
56                 push    r7
57                 push    r8
58                 push    r9
59                 push    r10
60                 push    r11
61                 push    r12
62                 push    r13
63                 push    r14
64                 push    r15
65                 mov.w   &_usCriticalNesting, r14
66                 push    r14
67                 mov.w   &_pxCurrentTCB, r12
68                 mov.w   r1, @r12
69                 endm
70 /*-----------------------------------------------------------*/
71                
72 portRESTORE_CONTEXT macro
73                 mov.w   &_pxCurrentTCB, r12
74                 mov.w   @r12, r1
75                 pop             r15
76                 mov.w   r15, &_usCriticalNesting
77                 pop             r15
78                 pop             r14
79                 pop             r13
80                 pop             r12
81                 pop             r11
82                 pop             r10
83                 pop             r9
84                 pop             r8
85                 pop             r7
86                 pop             r6
87                 pop             r5
88                 pop             r4
89
90                 /* The last thing on the stack will be the status register.
91                 Ensure the power down bits are clear ready for the next
92                 time this power down register is popped from the stack. */
93                 bic.w   #0xf0,0(SP)
94
95                 reti
96                 endm
97 /*-----------------------------------------------------------*/
98
99 #endif
100
Note: See TracBrowser for help on using the browser.