2 FreeRTOS V8.2.0rc1 - Copyright (C) 2014 Real Time Engineers Ltd.
\r
5 VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
\r
7 This file is part of the FreeRTOS distribution.
\r
9 FreeRTOS is free software; you can redistribute it and/or modify it under
\r
10 the terms of the GNU General Public License (version 2) as published by the
\r
11 Free Software Foundation >>!AND MODIFIED BY!<< the FreeRTOS exception.
\r
13 >>! NOTE: The modification to the GPL is included to allow you to !<<
\r
14 >>! distribute a combined work that includes FreeRTOS without being !<<
\r
15 >>! obliged to provide the source code for proprietary components !<<
\r
16 >>! outside of the FreeRTOS kernel. !<<
\r
18 FreeRTOS is distributed in the hope that it will be useful, but WITHOUT ANY
\r
19 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
\r
20 FOR A PARTICULAR PURPOSE. Full license text is available on the following
\r
21 link: http://www.freertos.org/a00114.html
\r
25 ***************************************************************************
\r
27 * Having a problem? Start by reading the FAQ "My application does *
\r
28 * not run, what could be wrong?". Have you defined configASSERT()? *
\r
30 * http://www.FreeRTOS.org/FAQHelp.html *
\r
32 ***************************************************************************
\r
34 ***************************************************************************
\r
36 * FreeRTOS provides completely free yet professionally developed, *
\r
37 * robust, strictly quality controlled, supported, and cross *
\r
38 * platform software that is more than just the market leader, it *
\r
39 * is the industry's de facto standard. *
\r
41 * Help yourself get started quickly while simultaneously helping *
\r
42 * to support the FreeRTOS project by purchasing a FreeRTOS *
\r
43 * tutorial book, reference manual, or both: *
\r
44 * http://www.FreeRTOS.org/Documentation *
\r
46 ***************************************************************************
\r
48 ***************************************************************************
\r
50 * Investing in training allows your team to be as productive as *
\r
51 * possible as early as possible, lowering your overall development *
\r
52 * cost, and enabling you to bring a more robust product to market *
\r
53 * earlier than would otherwise be possible. Richard Barry is both *
\r
54 * the architect and key author of FreeRTOS, and so also the world's *
\r
55 * leading authority on what is the world's most popular real time *
\r
56 * kernel for deeply embedded MCU designs. Obtaining your training *
\r
57 * from Richard ensures your team will gain directly from his in-depth *
\r
58 * product knowledge and years of usage experience. Contact Real Time *
\r
59 * Engineers Ltd to enquire about the FreeRTOS Masterclass, presented *
\r
60 * by Richard Barry: http://www.FreeRTOS.org/contact
\r
62 ***************************************************************************
\r
64 ***************************************************************************
\r
66 * You are receiving this top quality software for free. Please play *
\r
67 * fair and reciprocate by reporting any suspected issues and *
\r
68 * participating in the community forum: *
\r
69 * http://www.FreeRTOS.org/support *
\r
73 ***************************************************************************
\r
75 http://www.FreeRTOS.org - Documentation, books, training, latest versions,
\r
76 license and Real Time Engineers Ltd. contact details.
\r
78 http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products,
\r
79 including FreeRTOS+Trace - an indispensable productivity tool, a DOS
\r
80 compatible FAT file system, and our tiny thread aware UDP/IP stack.
\r
82 http://www.FreeRTOS.org/labs - Where new FreeRTOS products go to incubate.
\r
83 Come and try FreeRTOS+TCP, our new open source TCP/IP stack for FreeRTOS.
\r
85 http://www.OpenRTOS.com - Real Time Engineers ltd license FreeRTOS to High
\r
86 Integrity Systems ltd. to sell under the OpenRTOS brand. Low cost OpenRTOS
\r
87 licenses offer ticketed support, indemnification and commercial middleware.
\r
89 http://www.SafeRTOS.com - High Integrity Systems also provide a safety
\r
90 engineered and independently SIL3 certified version for use in safety and
\r
91 mission critical applications that require provable dependability.
\r
98 #include <sys/asm.h>
\r
111 /* Reg test tasks call the error loop when they find an error. Sitting in the
\r
112 tight error loop prevents them incrementing their ulRegTestnCycles counter, and
\r
113 so allows the check softwate timer to know an error has been found. */
\r
126 /* Fill the registers with known values. */
\r
130 /* $4 contains the address of the loop counter - don't mess with $4. */
\r
136 addiu $10, $0, 0x110
\r
137 addiu $11, $0, 0x111
\r
138 addiu $12, $0, 0x112
\r
139 addiu $13, $0, 0x113
\r
140 addiu $14, $0, 0x114
\r
141 addiu $15, $0, 0x115
\r
142 addiu $16, $0, 0x116
\r
143 addiu $17, $0, 0x117
\r
144 addiu $18, $0, 0x118
\r
145 addiu $19, $0, 0x119
\r
146 addiu $20, $0, 0x120
\r
147 addiu $21, $0, 0x121
\r
148 addiu $23, $0, 0x123
\r
149 addiu $24, $0, 0x124
\r
150 addiu $25, $0, 0x125
\r
151 addiu $30, $0, 0x130
\r
152 addiu $22, $0, 0x131
\r
154 addiu $22, $0, 0x132
\r
158 /* Check each register maintains the value assigned to it for the lifetime
\r
160 addiu $22, $0, 0x00
\r
161 addiu $22, $1, -0x11
\r
164 /* The register value was not that expected. Jump to the error loop so the
\r
165 cycle counter stops incrementing. */
\r
169 addiu $22, $0, 0x00
\r
170 addiu $22, $2, -0x12
\r
176 addiu $22, $0, 0x00
\r
177 addiu $22, $3, -0x13
\r
183 addiu $22, $0, 0x00
\r
184 addiu $22, $5, -0x15
\r
190 addiu $22, $0, 0x00
\r
191 addiu $22, $6, -0x16
\r
197 addiu $22, $0, 0x00
\r
198 addiu $22, $7, -0x17
\r
204 addiu $22, $0, 0x00
\r
205 addiu $22, $8, -0x18
\r
211 addiu $22, $0, 0x00
\r
212 addiu $22, $9, -0x19
\r
218 addiu $22, $0, 0x00
\r
219 addiu $22, $10, -0x110
\r
225 addiu $22, $0, 0x00
\r
226 addiu $22, $11, -0x111
\r
232 addiu $22, $0, 0x00
\r
233 addiu $22, $12, -0x112
\r
239 addiu $22, $0, 0x00
\r
240 addiu $22, $13, -0x113
\r
246 addiu $22, $0, 0x00
\r
247 addiu $22, $14, -0x114
\r
253 addiu $22, $0, 0x00
\r
254 addiu $22, $15, -0x115
\r
260 addiu $22, $0, 0x00
\r
261 addiu $22, $16, -0x116
\r
267 addiu $22, $0, 0x00
\r
268 addiu $22, $17, -0x117
\r
274 addiu $22, $0, 0x00
\r
275 addiu $22, $18, -0x118
\r
281 addiu $22, $0, 0x00
\r
282 addiu $22, $19, -0x119
\r
288 addiu $22, $0, 0x00
\r
289 addiu $22, $20, -0x120
\r
295 addiu $22, $0, 0x00
\r
296 addiu $22, $21, -0x121
\r
302 addiu $22, $0, 0x00
\r
303 addiu $22, $23, -0x123
\r
309 addiu $22, $0, 0x00
\r
310 addiu $22, $24, -0x124
\r
316 addiu $22, $0, 0x00
\r
317 addiu $22, $25, -0x125
\r
323 addiu $22, $0, 0x00
\r
324 addiu $22, $30, -0x130
\r
331 addiu $22, $22, -0x131
\r
338 addiu $22, $22, -0x132
\r
344 /* No errors detected. Increment the loop count so the check timer knows
\r
345 this task is still running without error, then loop back to do it all
\r
346 again. The address of the loop counter is in $4. */
\r
348 addiu $22, $22, 0x01
\r
364 /* $4 contains the address of the loop counter - don't mess with $4. */
\r
370 addiu $10, $0, 0x210
\r
371 addiu $11, $0, 0x211
\r
372 addiu $12, $0, 0x212
\r
373 addiu $13, $0, 0x213
\r
374 addiu $14, $0, 0x214
\r
375 addiu $15, $0, 0x215
\r
376 addiu $16, $0, 0x216
\r
377 addiu $17, $0, 0x217
\r
378 addiu $18, $0, 0x218
\r
379 addiu $19, $0, 0x219
\r
380 addiu $20, $0, 0x220
\r
381 addiu $21, $0, 0x221
\r
382 addiu $23, $0, 0x223
\r
383 addiu $24, $0, 0x224
\r
384 addiu $25, $0, 0x225
\r
385 addiu $30, $0, 0x230
\r
386 addiu $22, $0, 0x231
\r
388 addiu $22, $0, 0x232
\r
392 addiu $22, $0, 0x00
\r
393 addiu $22, $1, -0x21
\r
399 addiu $22, $0, 0x00
\r
400 addiu $22, $2, -0x22
\r
406 addiu $22, $0, 0x00
\r
407 addiu $22, $3, -0x23
\r
413 addiu $22, $0, 0x00
\r
414 addiu $22, $5, -0x25
\r
420 addiu $22, $0, 0x00
\r
421 addiu $22, $6, -0x26
\r
427 addiu $22, $0, 0x00
\r
428 addiu $22, $7, -0x27
\r
434 addiu $22, $0, 0x00
\r
435 addiu $22, $8, -0x28
\r
441 addiu $22, $0, 0x00
\r
442 addiu $22, $9, -0x29
\r
448 addiu $22, $0, 0x00
\r
449 addiu $22, $10, -0x210
\r
455 addiu $22, $0, 0x00
\r
456 addiu $22, $11, -0x211
\r
462 addiu $22, $0, 0x00
\r
463 addiu $22, $12, -0x212
\r
469 addiu $22, $0, 0x00
\r
470 addiu $22, $13, -0x213
\r
476 addiu $22, $0, 0x00
\r
477 addiu $22, $14, -0x214
\r
483 addiu $22, $0, 0x00
\r
484 addiu $22, $15, -0x215
\r
490 addiu $22, $0, 0x00
\r
491 addiu $22, $16, -0x216
\r
497 addiu $22, $0, 0x00
\r
498 addiu $22, $17, -0x217
\r
504 addiu $22, $0, 0x00
\r
505 addiu $22, $18, -0x218
\r
511 addiu $22, $0, 0x00
\r
512 addiu $22, $19, -0x219
\r
518 addiu $22, $0, 0x00
\r
519 addiu $22, $20, -0x220
\r
525 addiu $22, $0, 0x00
\r
526 addiu $22, $21, -0x221
\r
532 addiu $22, $0, 0x00
\r
533 addiu $22, $23, -0x223
\r
539 addiu $22, $0, 0x00
\r
540 addiu $22, $24, -0x224
\r
546 addiu $22, $0, 0x00
\r
547 addiu $22, $25, -0x225
\r
553 addiu $22, $0, 0x00
\r
554 addiu $22, $30, -0x230
\r
561 addiu $22, $22, -0x231
\r
568 addiu $22, $22, -0x232
\r
574 /* No errors detected. Increment the loop count so the check timer knows
\r
575 this task is still running without error, then loop back to do it all
\r
576 again. The address of the loop counter is in $4. */
\r
578 addiu $22, $22, 0x01
\r