2 FreeRTOS V7.0.2 - Copyright (C) 2011 Real Time Engineers Ltd.
\r
5 ***************************************************************************
\r
7 * FreeRTOS tutorial books are available in pdf and paperback. *
\r
8 * Complete, revised, and edited pdf reference manuals are also *
\r
11 * Purchasing FreeRTOS documentation will not only help you, by *
\r
12 * ensuring you get running as quickly as possible and with an *
\r
13 * in-depth knowledge of how to use FreeRTOS, it will also help *
\r
14 * the FreeRTOS project to continue with its mission of providing *
\r
15 * professional grade, cross platform, de facto standard solutions *
\r
16 * for microcontrollers - completely free of charge! *
\r
18 * >>> See http://www.FreeRTOS.org/Documentation for details. <<< *
\r
20 * Thank you for using FreeRTOS, and thank you for your support! *
\r
22 ***************************************************************************
\r
25 This file is part of the FreeRTOS distribution.
\r
27 FreeRTOS is free software; you can redistribute it and/or modify it under
\r
28 the terms of the GNU General Public License (version 2) as published by the
\r
29 Free Software Foundation AND MODIFIED BY the FreeRTOS exception.
\r
30 >>>NOTE<<< The modification to the GPL is included to allow you to
\r
31 distribute a combined work that includes FreeRTOS without being obliged to
\r
32 provide the source code for proprietary components outside of the FreeRTOS
\r
33 kernel. FreeRTOS is distributed in the hope that it will be useful, but
\r
34 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
\r
35 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
\r
36 more details. You should have received a copy of the GNU General Public
\r
37 License and the FreeRTOS license exception along with FreeRTOS; if not it
\r
38 can be viewed here: http://www.freertos.org/a00114.html and also obtained
\r
39 by writing to Richard Barry, contact details for whom are available on the
\r
44 http://www.FreeRTOS.org - Documentation, latest information, license and
\r
47 http://www.SafeRTOS.com - A version that is certified for use in safety
\r
50 http://www.OpenRTOS.com - Commercial support, development, porting,
\r
51 licensing and training services.
\r
55 __asm vRegTest1Task( void )
\r
58 IMPORT ulRegTest1LoopCounter
\r
60 /* Fill the core registers with known values. */
\r
75 /* Fill the VFP registers with known values. */
\r
94 /* Check all the VFP registers still contain the values set above.
\r
95 First save registers that are clobbered by the test. */
\r
100 bne reg1_error_loopf
\r
102 bne reg1_error_loopf
\r
105 bne reg1_error_loopf
\r
107 bne reg1_error_loopf
\r
110 bne reg1_error_loopf
\r
112 bne reg1_error_loopf
\r
115 bne reg1_error_loopf
\r
117 bne reg1_error_loopf
\r
120 bne reg1_error_loopf
\r
122 bne reg1_error_loopf
\r
125 bne reg1_error_loopf
\r
127 bne reg1_error_loopf
\r
130 bne reg1_error_loopf
\r
132 bne reg1_error_loopf
\r
135 bne reg1_error_loopf
\r
137 bne reg1_error_loopf
\r
140 bne reg1_error_loopf
\r
142 bne reg1_error_loopf
\r
145 bne reg1_error_loopf
\r
147 bne reg1_error_loopf
\r
150 bne reg1_error_loopf
\r
152 bne reg1_error_loopf
\r
155 bne reg1_error_loopf
\r
157 bne reg1_error_loopf
\r
160 bne reg1_error_loopf
\r
162 bne reg1_error_loopf
\r
165 bne reg1_error_loopf
\r
167 bne reg1_error_loopf
\r
170 bne reg1_error_loopf
\r
172 bne reg1_error_loopf
\r
175 bne reg1_error_loopf
\r
177 bne reg1_error_loopf
\r
179 /* Restore the registers that were clobbered by the test. */
\r
182 /* VFP register test passed. Jump to the core register test. */
\r
186 /* If this line is hit then a VFP register value was found to be
\r
193 bne reg1_error_loop
\r
195 bne reg1_error_loop
\r
197 bne reg1_error_loop
\r
199 bne reg1_error_loop
\r
201 bne reg1_error_loop
\r
203 bne reg1_error_loop
\r
205 bne reg1_error_loop
\r
207 bne reg1_error_loop
\r
209 bne reg1_error_loop
\r
211 bne reg1_error_loop
\r
213 bne reg1_error_loop
\r
215 bne reg1_error_loop
\r
217 bne reg1_error_loop
\r
219 /* Everything passed, increment the loop counter. */
\r
221 ldr r0, =ulRegTest1LoopCounter
\r
231 /* If this line is hit then there was an error in a core register value.
\r
232 The loop ensures the loop counter stops incrementing. */
\r
236 /*-----------------------------------------------------------*/
\r
238 __asm vRegTest2Task( void )
\r
241 IMPORT ulRegTest2LoopCounter
\r
243 /* Set all the core registers to known values. */
\r
258 /* Set all the VFP to known values. */
\r
278 /* Check all the VFP registers still contain the values set above.
\r
279 First save registers that are clobbered by the test. */
\r
284 bne reg2_error_loopf
\r
286 bne reg2_error_loopf
\r
289 bne reg2_error_loopf
\r
291 bne reg2_error_loopf
\r
294 bne reg2_error_loopf
\r
296 bne reg2_error_loopf
\r
299 bne reg2_error_loopf
\r
301 bne reg2_error_loopf
\r
304 bne reg2_error_loopf
\r
306 bne reg2_error_loopf
\r
309 bne reg2_error_loopf
\r
311 bne reg2_error_loopf
\r
314 bne reg2_error_loopf
\r
316 bne reg2_error_loopf
\r
319 bne reg2_error_loopf
\r
321 bne reg2_error_loopf
\r
324 bne reg2_error_loopf
\r
326 bne reg2_error_loopf
\r
329 bne reg2_error_loopf
\r
331 bne reg2_error_loopf
\r
334 bne reg2_error_loopf
\r
336 bne reg2_error_loopf
\r
339 bne reg2_error_loopf
\r
341 bne reg2_error_loopf
\r
344 bne reg2_error_loopf
\r
346 bne reg2_error_loopf
\r
349 bne reg2_error_loopf
\r
351 bne reg2_error_loopf
\r
354 bne reg2_error_loopf
\r
356 bne reg2_error_loopf
\r
359 bne reg2_error_loopf
\r
361 bne reg2_error_loopf
\r
363 /* Restore the registers that were clobbered by the test. */
\r
366 /* VFP register test passed. Jump to the core register test. */
\r
370 /* If this line is hit then a VFP register value was found to be
\r
377 bne reg2_error_loop
\r
379 bne reg2_error_loop
\r
381 bne reg2_error_loop
\r
383 bne reg2_error_loop
\r
385 bne reg2_error_loop
\r
387 bne reg2_error_loop
\r
389 bne reg2_error_loop
\r
391 bne reg2_error_loop
\r
393 bne reg2_error_loop
\r
395 bne reg2_error_loop
\r
397 bne reg2_error_loop
\r
399 bne reg2_error_loop
\r
401 bne reg2_error_loop
\r
403 /* Increment the loop counter to indicate this test is still functioning
\r
406 ldr r0, =ulRegTest2LoopCounter
\r
416 /* If this line is hit then there was an error in a core register value.
\r
417 This loop ensures the loop counter variable stops incrementing. */
\r
421 /*-----------------------------------------------------------*/
\r
423 __asm vRegTestClearFlopRegistersToParameterValue( unsigned long ulValue )
\r
427 /* Clobber the auto saved registers. */
\r
438 /*-----------------------------------------------------------*/
\r
440 __asm ulRegTestCheckFlopRegistersContainParameterValue( unsigned long ulValue )
\r