2 FreeRTOS.org V4.7.1 - Copyright (C) 2003-2008 Richard Barry.
\r
4 This file is part of the FreeRTOS.org distribution.
\r
6 FreeRTOS.org is free software; you can redistribute it and/or modify
\r
7 it under the terms of the GNU General Public License as published by
\r
8 the Free Software Foundation; either version 2 of the License, or
\r
9 (at your option) any later version.
\r
11 FreeRTOS.org is distributed in the hope that it will be useful,
\r
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
14 GNU General Public License for more details.
\r
16 You should have received a copy of the GNU General Public License
\r
17 along with FreeRTOS.org; if not, write to the Free Software
\r
18 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
\r
20 A special exception to the GPL can be applied should you wish to distribute
\r
21 a combined work that includes FreeRTOS.org, without being obliged to provide
\r
22 the source code for any proprietary components. See the licensing section
\r
23 of http://www.FreeRTOS.org for full details of how and when the exception
\r
26 ***************************************************************************
\r
28 Please ensure to read the configuration and relevant port sections of the
\r
29 online documentation.
\r
31 +++ http://www.FreeRTOS.org +++
\r
32 Documentation, latest information, license and contact details.
\r
34 +++ http://www.SafeRTOS.com +++
\r
35 A version that is certified for use in safety critical systems.
\r
37 +++ http://www.OpenRTOS.com +++
\r
38 Commercial support, development, porting, licensing and training services.
\r
40 ***************************************************************************
\r
44 #include <p32xxxx.h>
\r
45 #include <sys/asm.h>
\r
55 /* .section .FreeRTOS, ax, @progbits */
\r
60 /* Address of $4 ulStatus1 is held in A0, so don't mess with the value of $4 */
\r
71 addiu $10, $0, 0x110
\r
72 addiu $11, $0, 0x111
\r
73 addiu $12, $0, 0x112
\r
74 addiu $13, $0, 0x113
\r
75 addiu $14, $0, 0x114
\r
76 addiu $15, $0, 0x115
\r
77 addiu $16, $0, 0x116
\r
78 addiu $17, $0, 0x117
\r
79 addiu $18, $0, 0x118
\r
80 addiu $19, $0, 0x119
\r
81 addiu $20, $0, 0x120
\r
82 addiu $21, $0, 0x121
\r
83 addiu $22, $0, 0x122
\r
84 addiu $23, $0, 0x123
\r
85 addiu $24, $0, 0x124
\r
86 addiu $25, $0, 0x125
\r
87 addiu $30, $0, 0x130
\r
89 #if configUSE_PREEMPTION == 0
\r
97 addiu $2, $2, -0x12
\r
101 addiu $3, $3, -0x13
\r
105 addiu $5, $5, -0x15
\r
109 addiu $6, $6, -0x16
\r
113 addiu $7, $7, -0x17
\r
117 addiu $8, $8, -0x18
\r
121 addiu $9, $9, -0x19
\r
125 addiu $10, $10, -0x110
\r
129 addiu $11, $11, -0x111
\r
133 addiu $12, $12, -0x112
\r
137 addiu $13, $13, -0x113
\r
141 addiu $14, $14, -0x114
\r
145 addiu $15, $15, -0x115
\r
149 addiu $16, $16, -0x116
\r
153 addiu $17, $17, -0x117
\r
157 addiu $18, $18, -0x118
\r
161 addiu $19, $19, -0x119
\r
165 addiu $20, $20, -0x120
\r
169 addiu $21, $21, -0x121
\r
173 addiu $22, $22, -0x122
\r
177 addiu $23, $23, -0x123
\r
181 addiu $24, $24, -0x124
\r
185 addiu $25, $25, -0x125
\r
189 addiu $30, $30, -0x130
\r
199 /* .section .FreeRTOS, ax, @progbits */
\r
207 addiu $2, $0, 0x20
\r
208 addiu $3, $0, 0x30
\r
209 addiu $5, $0, 0x50
\r
210 addiu $6, $0, 0x60
\r
211 addiu $7, $0, 0x70
\r
212 addiu $8, $0, 0x80
\r
213 addiu $9, $0, 0x90
\r
214 addiu $10, $0, 0x100
\r
215 addiu $11, $0, 0x110
\r
216 addiu $12, $0, 0x120
\r
217 addiu $13, $0, 0x130
\r
218 addiu $14, $0, 0x140
\r
219 addiu $15, $0, 0x150
\r
220 addiu $16, $0, 0x160
\r
221 addiu $17, $0, 0x170
\r
222 addiu $18, $0, 0x180
\r
223 addiu $19, $0, 0x190
\r
224 addiu $20, $0, 0x200
\r
225 addiu $21, $0, 0x210
\r
226 addiu $22, $0, 0x220
\r
227 addiu $23, $0, 0x230
\r
228 addiu $24, $0, 0x240
\r
229 addiu $25, $0, 0x250
\r
230 addiu $30, $0, 0x300
\r
232 #if configUSE_PREEMPTION == 0
\r
236 addiu $1, $1, -0x10
\r
240 addiu $2, $2, -0x20
\r
244 addiu $3, $3, -0x30
\r
248 addiu $5, $5, -0x50
\r
252 addiu $6, $6, -0x60
\r
256 addiu $7, $7, -0x70
\r
260 addiu $8, $8, -0x80
\r
264 addiu $9, $9, -0x90
\r
268 addiu $10, $10, -0x100
\r
272 addiu $11, $11, -0x110
\r
276 addiu $12, $12, -0x120
\r
280 addiu $13, $13, -0x130
\r
284 addiu $14, $14, -0x140
\r
288 addiu $15, $15, -0x150
\r
292 addiu $16, $16, -0x160
\r
296 addiu $17, $17, -0x170
\r
300 addiu $18, $18, -0x180
\r
304 addiu $19, $19, -0x190
\r
308 addiu $20, $20, -0x200
\r
312 addiu $21, $21, -0x210
\r
316 addiu $22, $22, -0x220
\r
320 addiu $23, $23, -0x230
\r
324 addiu $24, $24, -0x240
\r
328 addiu $25, $25, -0x250
\r
332 addiu $30, $30, -0x300
\r