2 FreeRTOS.org V4.7.0 - Copyright (C) 2003-2007 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
27 See http://www.FreeRTOS.org for documentation, latest information, license
\r
28 and contact details. Please ensure to read the configuration and relevant
\r
29 port sections of the online documentation.
\r
31 Also see http://www.SafeRTOS.com a version that has been certified for use
\r
32 in safety critical systems, plus commercial licensing, development and
\r
34 ***************************************************************************
\r
38 #include <p32xxxx.h>
\r
39 #include <sys/asm.h>
\r
49 /* .section .FreeRTOS, ax, @progbits */
\r
54 /* Address of $4 ulStatus1 is held in A0, so don't mess with the value of $4 */
\r
65 addiu $10, $0, 0x110
\r
66 addiu $11, $0, 0x111
\r
67 addiu $12, $0, 0x112
\r
68 addiu $13, $0, 0x113
\r
69 addiu $14, $0, 0x114
\r
70 addiu $15, $0, 0x115
\r
71 addiu $16, $0, 0x116
\r
72 addiu $17, $0, 0x117
\r
73 addiu $18, $0, 0x118
\r
74 addiu $19, $0, 0x119
\r
75 addiu $20, $0, 0x120
\r
76 addiu $21, $0, 0x121
\r
77 addiu $22, $0, 0x122
\r
78 addiu $23, $0, 0x123
\r
79 addiu $24, $0, 0x124
\r
80 addiu $25, $0, 0x125
\r
81 addiu $30, $0, 0x130
\r
83 #if configUSE_PREEMPTION == 0
\r
91 addiu $2, $2, -0x12
\r
95 addiu $3, $3, -0x13
\r
99 addiu $5, $5, -0x15
\r
103 addiu $6, $6, -0x16
\r
107 addiu $7, $7, -0x17
\r
111 addiu $8, $8, -0x18
\r
115 addiu $9, $9, -0x19
\r
119 addiu $10, $10, -0x110
\r
123 addiu $11, $11, -0x111
\r
127 addiu $12, $12, -0x112
\r
131 addiu $13, $13, -0x113
\r
135 addiu $14, $14, -0x114
\r
139 addiu $15, $15, -0x115
\r
143 addiu $16, $16, -0x116
\r
147 addiu $17, $17, -0x117
\r
151 addiu $18, $18, -0x118
\r
155 addiu $19, $19, -0x119
\r
159 addiu $20, $20, -0x120
\r
163 addiu $21, $21, -0x121
\r
167 addiu $22, $22, -0x122
\r
171 addiu $23, $23, -0x123
\r
175 addiu $24, $24, -0x124
\r
179 addiu $25, $25, -0x125
\r
183 addiu $30, $30, -0x130
\r
193 /* .section .FreeRTOS, ax, @progbits */
\r
201 addiu $2, $0, 0x20
\r
202 addiu $3, $0, 0x30
\r
203 addiu $5, $0, 0x50
\r
204 addiu $6, $0, 0x60
\r
205 addiu $7, $0, 0x70
\r
206 addiu $8, $0, 0x80
\r
207 addiu $9, $0, 0x90
\r
208 addiu $10, $0, 0x100
\r
209 addiu $11, $0, 0x110
\r
210 addiu $12, $0, 0x120
\r
211 addiu $13, $0, 0x130
\r
212 addiu $14, $0, 0x140
\r
213 addiu $15, $0, 0x150
\r
214 addiu $16, $0, 0x160
\r
215 addiu $17, $0, 0x170
\r
216 addiu $18, $0, 0x180
\r
217 addiu $19, $0, 0x190
\r
218 addiu $20, $0, 0x200
\r
219 addiu $21, $0, 0x210
\r
220 addiu $22, $0, 0x220
\r
221 addiu $23, $0, 0x230
\r
222 addiu $24, $0, 0x240
\r
223 addiu $25, $0, 0x250
\r
224 addiu $30, $0, 0x300
\r
226 #if configUSE_PREEMPTION == 0
\r
230 addiu $1, $1, -0x10
\r
234 addiu $2, $2, -0x20
\r
238 addiu $3, $3, -0x30
\r
242 addiu $5, $5, -0x50
\r
246 addiu $6, $6, -0x60
\r
250 addiu $7, $7, -0x70
\r
254 addiu $8, $8, -0x80
\r
258 addiu $9, $9, -0x90
\r
262 addiu $10, $10, -0x100
\r
266 addiu $11, $11, -0x110
\r
270 addiu $12, $12, -0x120
\r
274 addiu $13, $13, -0x130
\r
278 addiu $14, $14, -0x140
\r
282 addiu $15, $15, -0x150
\r
286 addiu $16, $16, -0x160
\r
290 addiu $17, $17, -0x170
\r
294 addiu $18, $18, -0x180
\r
298 addiu $19, $19, -0x190
\r
302 addiu $20, $20, -0x200
\r
306 addiu $21, $21, -0x210
\r
310 addiu $22, $22, -0x220
\r
314 addiu $23, $23, -0x230
\r
318 addiu $24, $24, -0x240
\r
322 addiu $25, $25, -0x250
\r
326 addiu $30, $30, -0x300
\r