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
156 addiu $22, $0, 0x133
\r
158 addiu $22, $0, 0x134
\r
160 addiu $22, $0, 0x135
\r
162 addiu $22, $0, 0x136
\r
166 /* Check each register maintains the value assigned to it for the lifetime
\r
168 addiu $22, $0, 0x00
\r
169 addiu $22, $1, -0x11
\r
172 /* The register value was not that expected. Jump to the error loop so the
\r
173 cycle counter stops incrementing. */
\r
177 addiu $22, $0, 0x00
\r
178 addiu $22, $2, -0x12
\r
184 addiu $22, $0, 0x00
\r
185 addiu $22, $3, -0x13
\r
191 addiu $22, $0, 0x00
\r
192 addiu $22, $5, -0x15
\r
198 addiu $22, $0, 0x00
\r
199 addiu $22, $6, -0x16
\r
205 addiu $22, $0, 0x00
\r
206 addiu $22, $7, -0x17
\r
212 addiu $22, $0, 0x00
\r
213 addiu $22, $8, -0x18
\r
219 addiu $22, $0, 0x00
\r
220 addiu $22, $9, -0x19
\r
226 addiu $22, $0, 0x00
\r
227 addiu $22, $10, -0x110
\r
233 addiu $22, $0, 0x00
\r
234 addiu $22, $11, -0x111
\r
240 addiu $22, $0, 0x00
\r
241 addiu $22, $12, -0x112
\r
247 addiu $22, $0, 0x00
\r
248 addiu $22, $13, -0x113
\r
254 addiu $22, $0, 0x00
\r
255 addiu $22, $14, -0x114
\r
261 addiu $22, $0, 0x00
\r
262 addiu $22, $15, -0x115
\r
268 addiu $22, $0, 0x00
\r
269 addiu $22, $16, -0x116
\r
275 addiu $22, $0, 0x00
\r
276 addiu $22, $17, -0x117
\r
282 addiu $22, $0, 0x00
\r
283 addiu $22, $18, -0x118
\r
289 addiu $22, $0, 0x00
\r
290 addiu $22, $19, -0x119
\r
296 addiu $22, $0, 0x00
\r
297 addiu $22, $20, -0x120
\r
303 addiu $22, $0, 0x00
\r
304 addiu $22, $21, -0x121
\r
310 addiu $22, $0, 0x00
\r
311 addiu $22, $23, -0x123
\r
317 addiu $22, $0, 0x00
\r
318 addiu $22, $24, -0x124
\r
324 addiu $22, $0, 0x00
\r
325 addiu $22, $25, -0x125
\r
331 addiu $22, $0, 0x00
\r
332 addiu $22, $30, -0x130
\r
339 addiu $22, $22, -0x131
\r
346 addiu $22, $22, -0x132
\r
353 addiu $22, $22, -0x133
\r
360 addiu $22, $22, -0x134
\r
367 addiu $22, $22, -0x135
\r
374 addiu $22, $22, -0x136
\r
380 /* No errors detected. Increment the loop count so the check timer knows
\r
381 this task is still running without error, then loop back to do it all
\r
382 again. The address of the loop counter is in $4. */
\r
384 addiu $22, $22, 0x01
\r
400 /* $4 contains the address of the loop counter - don't mess with $4. */
\r
406 addiu $10, $0, 0x210
\r
407 addiu $11, $0, 0x211
\r
408 addiu $12, $0, 0x212
\r
409 addiu $13, $0, 0x213
\r
410 addiu $14, $0, 0x214
\r
411 addiu $15, $0, 0x215
\r
412 addiu $16, $0, 0x216
\r
413 addiu $17, $0, 0x217
\r
414 addiu $18, $0, 0x218
\r
415 addiu $19, $0, 0x219
\r
416 addiu $20, $0, 0x220
\r
417 addiu $21, $0, 0x221
\r
418 addiu $23, $0, 0x223
\r
419 addiu $24, $0, 0x224
\r
420 addiu $25, $0, 0x225
\r
421 addiu $30, $0, 0x230
\r
422 addiu $22, $0, 0x231
\r
424 addiu $22, $0, 0x232
\r
426 addiu $22, $0, 0x233
\r
428 addiu $22, $0, 0x234
\r
430 addiu $22, $0, 0x235
\r
432 addiu $22, $0, 0x236
\r
436 addiu $22, $0, 0x00
\r
437 addiu $22, $1, -0x21
\r
443 addiu $22, $0, 0x00
\r
444 addiu $22, $2, -0x22
\r
450 addiu $22, $0, 0x00
\r
451 addiu $22, $3, -0x23
\r
457 addiu $22, $0, 0x00
\r
458 addiu $22, $5, -0x25
\r
464 addiu $22, $0, 0x00
\r
465 addiu $22, $6, -0x26
\r
471 addiu $22, $0, 0x00
\r
472 addiu $22, $7, -0x27
\r
478 addiu $22, $0, 0x00
\r
479 addiu $22, $8, -0x28
\r
485 addiu $22, $0, 0x00
\r
486 addiu $22, $9, -0x29
\r
492 addiu $22, $0, 0x00
\r
493 addiu $22, $10, -0x210
\r
499 addiu $22, $0, 0x00
\r
500 addiu $22, $11, -0x211
\r
506 addiu $22, $0, 0x00
\r
507 addiu $22, $12, -0x212
\r
513 addiu $22, $0, 0x00
\r
514 addiu $22, $13, -0x213
\r
520 addiu $22, $0, 0x00
\r
521 addiu $22, $14, -0x214
\r
527 addiu $22, $0, 0x00
\r
528 addiu $22, $15, -0x215
\r
534 addiu $22, $0, 0x00
\r
535 addiu $22, $16, -0x216
\r
541 addiu $22, $0, 0x00
\r
542 addiu $22, $17, -0x217
\r
548 addiu $22, $0, 0x00
\r
549 addiu $22, $18, -0x218
\r
555 addiu $22, $0, 0x00
\r
556 addiu $22, $19, -0x219
\r
562 addiu $22, $0, 0x00
\r
563 addiu $22, $20, -0x220
\r
569 addiu $22, $0, 0x00
\r
570 addiu $22, $21, -0x221
\r
576 addiu $22, $0, 0x00
\r
577 addiu $22, $23, -0x223
\r
583 addiu $22, $0, 0x00
\r
584 addiu $22, $24, -0x224
\r
590 addiu $22, $0, 0x00
\r
591 addiu $22, $25, -0x225
\r
597 addiu $22, $0, 0x00
\r
598 addiu $22, $30, -0x230
\r
605 addiu $22, $22, -0x231
\r
612 addiu $22, $22, -0x232
\r
619 addiu $22, $22, -0x233
\r
626 addiu $22, $22, -0x234
\r
633 addiu $22, $22, -0x235
\r
640 addiu $22, $22, -0x236
\r
646 /* No errors detected. Increment the loop count so the check timer knows
\r
647 this task is still running without error, then loop back to do it all
\r
648 again. The address of the loop counter is in $4. */
\r
650 addiu $22, $22, 0x01
\r