1 ; FreeRTOS.org V5.1.1 - Copyright (C) 2003-2008 Richard Barry.
\r
3 ; This file is part of the FreeRTOS.org distribution.
\r
5 ; FreeRTOS.org is free software; you can redistribute it and/or modify
\r
6 ; it under the terms of the GNU General Public License as published by
\r
7 ; the Free Software Foundation; either version 2 of the License, or
\r
8 ; (at your option) any later version.
\r
10 ; FreeRTOS.org is distributed in the hope that it will be useful,
\r
11 ; but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
12 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
13 ; GNU General Public License for more details.
\r
15 ; You should have received a copy of the GNU General Public License
\r
16 ; along with FreeRTOS.org; if not, write to the Free Software
\r
17 ; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
\r
19 ; A special exception to the GPL can be applied should you wish to distribute
\r
20 ; a combined work that includes FreeRTOS.org, without being obliged to provide
\r
21 ; the source code for any proprietary components. See the licensing section
\r
22 ; of http://www.FreeRTOS.org for full details of how and when the exception
\r
25 ; ***************************************************************************
\r
26 ; See http://www.FreeRTOS.org for documentation, latest information, license
\r
27 ; and contact details. Please ensure to read the configuration and relevant
\r
28 ; port sections of the online documentation.
\r
29 ; ***************************************************************************
\r
31 ;------------------------------------------------------------------------------
\r
35 ; This file defines the RegTest tasks as described at the top of main.c
\r
38 ;------------------------------------------------------------------------------
\r
40 #if __CORE__ != __78K0R__
\r
41 #error "This file is only for 78K0R Devices"
\r
44 ; Functions implemented in this file
\r
45 ;------------------------------------------------------------------------------
\r
50 ; Functions used by this file
\r
51 ;------------------------------------------------------------------------------
\r
52 EXTERN vRegTestError
\r
54 ;------------------------------------------------------------------------------
\r
55 ; Fill all the registers with known values, then check that the registers
\r
56 ; contain the expected value. An incorrect value being indicative of an
\r
57 ; error in the context switch mechanism.
\r
61 ; Call: Created as a task.
\r
65 ;------------------------------------------------------------------------------
\r
69 ; First fill the registers.
\r
75 #if configMEMORY_MODE == 1
\r
76 ; ES is not saved or restored when using the near memory model so only
\r
77 ; test it when using the far model.
\r
82 ; Continuously check that the register values remain at their expected
\r
83 ; values. The BRK is to test the yield. This task runs at low priority
\r
84 ; so will also regularly get preempted.
\r
87 ; Compare with the expected value.
\r
90 ; Jump over the branch to vRegTestError() if the register contained the
\r
91 ; expected value - otherwise flag an error by executing vRegTestError().
\r
94 ; Repeat for all the registers.
\r
111 #if configMEMORY_MODE == 1
\r
112 ; ES is not saved or restored when using the near memory model so only
\r
113 ; test it when using the far model.
\r
123 ;------------------------------------------------------------------------------
\r
124 ; Fill all the registers with known values, then check that the registers
\r
125 ; contain the expected value. An incorrect value being indicative of an
\r
126 ; error in the context switch mechanism.
\r
130 ; Call: Created as a task.
\r
134 ;------------------------------------------------------------------------------
\r
143 #if configMEMORY_MODE == 1
\r
167 #if configMEMORY_MODE == 1
\r