3 ; * FreeRTOS Kernel V10.0.0
\r
4 ; * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
\r
6 ; * Permission is hereby granted, free of charge, to any person obtaining a copy of
\r
7 ; * this software and associated documentation files (the "Software"), to deal in
\r
8 ; * the Software without restriction, including without limitation the rights to
\r
9 ; * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
\r
10 ; * the Software, and to permit persons to whom the Software is furnished to do so,
\r
11 ; * subject to the following conditions:
\r
13 ; * The above copyright notice and this permission notice shall be included in all
\r
14 ; * copies or substantial portions of the Software. If you wish to use our Amazon
\r
15 ; * FreeRTOS name, please do so in a fair use way that does not cause confusion.
\r
17 ; * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
\r
18 ; * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
\r
19 ; * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
\r
20 ; * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
\r
21 ; * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
\r
22 ; * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\r
24 ; * http://www.FreeRTOS.org
\r
25 ; * http://aws.amazon.com/freertos
\r
27 ; * 1 tab == 4 spaces!
\r
30 ; * The definition of the "register test" tasks, as described at the top of
\r
33 .include data_model.h
\r
35 .if $DEFINED( __LARGE_DATA_MODEL__ )
\r
36 .define "cmp.a", cmp_x
\r
37 .define "incx.w", inc_x
\r
39 .define "cmp.w", cmp_x
\r
40 .define "inc.w", inc_x
\r
44 .global usRegTest1LoopCounter
\r
45 .global usRegTest2LoopCounter
\r
48 .def vRegTest1Implementation
\r
49 .def vRegTest2Implementation
\r
54 vRegTest1Implementation: .asmfunc
\r
56 ; Fill each general purpose register with a known value.
\r
72 ; Test each general purpose register to check that it still contains the
\r
73 ; expected known value, jumping to vRegTest1Error if any register contains
\r
74 ; an unexpected value.
\r
100 ; This task is still running without jumping to vRegTest1Error, so increment
\r
101 ; the loop counter so the check task knows the task is running error free.
\r
102 inc_x &usRegTest1LoopCounter
\r
104 ; Loop again, performing the same tests.
\r
105 jmp prvRegTest1Loop
\r
112 ; -----------------------------------------------------------
\r
114 ; See the comments in vRegTest1Implementation. This task is the same, it just uses
\r
115 ; different values in its registers.
\r
117 vRegTest2Implementation: .asmfunc
\r
159 ; Also perform a manual yield, just to increase the scope of the test.
\r
162 inc_x &usRegTest2LoopCounter
\r
163 jmp prvRegTest2Loop
\r
171 ; /*-----------------------------------------------------------
\r