📄 os_cpu_c.lst
字号:
213 0034 1292 st -Z,__zero_reg__
105:os/modify/os_cpu_c.c **** *stk-- = (INT8U)0x00; /* R21 = 0x00
215 .LM25:
216 0036 1292 st -Z,__zero_reg__
106:os/modify/os_cpu_c.c **** *stk-- = (INT8U)0x00; /* R22 = 0x00
218 .LM26:
219 0038 1292 st -Z,__zero_reg__
107:os/modify/os_cpu_c.c **** *stk-- = (INT8U)0x00; /* R23 = 0x00
221 .LM27:
222 003a 1292 st -Z,__zero_reg__
108:os/modify/os_cpu_c.c ****
109:os/modify/os_cpu_c.c **** tmp = (INT16U)pdata;
110:os/modify/os_cpu_c.c **** *stk-- = (INT8U)tmp; /* Simulate call to function with argument
224 .LM28:
225 003c 6293 st -Z,r22
111:os/modify/os_cpu_c.c **** *stk-- = (INT8U)(tmp >> 8); /* R24, R25 contains argument pointer pdata */
227 .LM29:
228 003e 872F mov r24,r23
229 0040 9927 clr r25
230 0042 8293 st -Z,r24
112:os/modify/os_cpu_c.c ****
113:os/modify/os_cpu_c.c **** *stk-- = (INT8U)0x00; /* R26 = 0x00
232 .LM30:
233 0044 1292 st -Z,__zero_reg__
114:os/modify/os_cpu_c.c **** *stk-- = (INT8U)0x00; /* R27 = 0x00
235 .LM31:
236 0046 1292 st -Z,__zero_reg__
115:os/modify/os_cpu_c.c **** *stk-- = (INT8U)0x00; /* R28 = 0x00
238 .LM32:
239 0048 1292 st -Z,__zero_reg__
116:os/modify/os_cpu_c.c **** *stk-- = (INT8U)0x00; /* R29 = 0x00
241 .LM33:
242 004a 1292 st -Z,__zero_reg__
117:os/modify/os_cpu_c.c **** *stk-- = (INT8U)0x00; /* R30 = 0x00
244 .LM34:
245 004c 1292 st -Z,__zero_reg__
118:os/modify/os_cpu_c.c **** *stk-- = (INT8U)0x00; /* R31 = 0x00
247 .LM35:
248 004e 1292 st -Z,__zero_reg__
119:os/modify/os_cpu_c.c **** #ifdef RAMPZ
120:os/modify/os_cpu_c.c **** *stk-- = (INT8U)0x00; /* RAMPZ = 0x00
250 .LM36:
251 0050 1292 st -Z,__zero_reg__
121:os/modify/os_cpu_c.c **** #endif
122:os/modify/os_cpu_c.c **** *stk-- = (INT8U)0x80; /* SREG = Interrupts enabled
253 .LM37:
254 0052 80E8 ldi r24,lo8(-128)
255 0054 8293 st -Z,r24
123:os/modify/os_cpu_c.c **** return ((OS_STK *)stk);
124:os/modify/os_cpu_c.c **** }
257 .LM38:
258 0056 CF01 movw r24,r30
259 0058 0197 sbiw r24,1
260 /* epilogue: frame size=0 */
261 005a 0895 ret
262 /* epilogue end (size=1) */
263 /* function OSTaskStkInit size 46 (45) */
268 .Lscope0:
271 .global OSTaskCreateHook
273 OSTaskCreateHook:
125:os/modify/os_cpu_c.c ****
126:os/modify/os_cpu_c.c **** /*$PAGE*/
127:os/modify/os_cpu_c.c ****
128:os/modify/os_cpu_c.c **** /*
129:os/modify/os_cpu_c.c **** ***************************************************************************************************
130:os/modify/os_cpu_c.c **** * TASK CREATION HOOK
131:os/modify/os_cpu_c.c **** *
132:os/modify/os_cpu_c.c **** * Description: This function is called when a task is created.
133:os/modify/os_cpu_c.c **** *
134:os/modify/os_cpu_c.c **** * Arguments : ptcb is a pointer to the task control block of the task being created.
135:os/modify/os_cpu_c.c **** *
136:os/modify/os_cpu_c.c **** * Note(s) : 1) Interrupts are disabled during this call.
137:os/modify/os_cpu_c.c **** ***************************************************************************************************
138:os/modify/os_cpu_c.c **** */
139:os/modify/os_cpu_c.c **** #if OS_CPU_HOOKS_EN > 0
140:os/modify/os_cpu_c.c **** void OSTaskCreateHook (OS_TCB *ptcb)
141:os/modify/os_cpu_c.c **** {
275 .LM39:
276 /* prologue: frame size=0 */
277 /* prologue end (size=0) */
278 /* epilogue: frame size=0 */
279 005c 0895 ret
280 /* epilogue end (size=1) */
281 /* function OSTaskCreateHook size 1 (0) */
283 .Lscope1:
286 .global OSTaskDelHook
288 OSTaskDelHook:
142:os/modify/os_cpu_c.c **** ptcb = ptcb; /* Prevent compiler warning
143:os/modify/os_cpu_c.c **** }
144:os/modify/os_cpu_c.c **** #endif
145:os/modify/os_cpu_c.c ****
146:os/modify/os_cpu_c.c ****
147:os/modify/os_cpu_c.c **** /*
148:os/modify/os_cpu_c.c **** ***************************************************************************************************
149:os/modify/os_cpu_c.c **** * TASK DELETION HOOK
150:os/modify/os_cpu_c.c **** *
151:os/modify/os_cpu_c.c **** * Description: This function is called when a task is deleted.
152:os/modify/os_cpu_c.c **** *
153:os/modify/os_cpu_c.c **** * Arguments : ptcb is a pointer to the task control block of the task being deleted.
154:os/modify/os_cpu_c.c **** *
155:os/modify/os_cpu_c.c **** * Note(s) : 1) Interrupts are disabled during this call.
156:os/modify/os_cpu_c.c **** ***************************************************************************************************
157:os/modify/os_cpu_c.c **** */
158:os/modify/os_cpu_c.c **** #if OS_CPU_HOOKS_EN > 0
159:os/modify/os_cpu_c.c **** void OSTaskDelHook (OS_TCB *ptcb)
160:os/modify/os_cpu_c.c **** {
290 .LM40:
291 /* prologue: frame size=0 */
292 /* prologue end (size=0) */
293 /* epilogue: frame size=0 */
294 005e 0895 ret
295 /* epilogue end (size=1) */
296 /* function OSTaskDelHook size 1 (0) */
298 .Lscope2:
300 .global OSTaskSwHook
302 OSTaskSwHook:
161:os/modify/os_cpu_c.c **** ptcb = ptcb; /* Prevent compiler warning
162:os/modify/os_cpu_c.c **** }
163:os/modify/os_cpu_c.c **** #endif
164:os/modify/os_cpu_c.c ****
165:os/modify/os_cpu_c.c **** /*
166:os/modify/os_cpu_c.c **** ***************************************************************************************************
167:os/modify/os_cpu_c.c **** * TASK SWITCH HOOK
168:os/modify/os_cpu_c.c **** *
169:os/modify/os_cpu_c.c **** * Description: This function is called when a task switch is performed. This allows you to perform
170:os/modify/os_cpu_c.c **** * operations during a context switch.
171:os/modify/os_cpu_c.c **** *
172:os/modify/os_cpu_c.c **** * Arguments : none
173:os/modify/os_cpu_c.c **** *
174:os/modify/os_cpu_c.c **** * Note(s) : 1) Interrupts are disabled during this call.
175:os/modify/os_cpu_c.c **** * 2) It is assumed that the global pointer 'OSTCBHighRdy' points to the TCB of the tas
176:os/modify/os_cpu_c.c **** * will be 'switched in' (i.e. the highest priority task) and, 'OSTCBCur' points to
177:os/modify/os_cpu_c.c **** * task being switched out (i.e. the preempted task).
178:os/modify/os_cpu_c.c **** ***************************************************************************************************
179:os/modify/os_cpu_c.c **** */
180:os/modify/os_cpu_c.c **** #if (OS_CPU_HOOKS_EN > 0) && (OS_VERSION < 260 || OS_TASK_SW_HOOK_EN > 0)
181:os/modify/os_cpu_c.c **** void OSTaskSwHook (void)
182:os/modify/os_cpu_c.c **** {
304 .LM41:
305 /* prologue: frame size=0 */
306 /* prologue end (size=0) */
307 /* epilogue: frame size=0 */
308 0060 0895 ret
309 /* epilogue end (size=1) */
310 /* function OSTaskSwHook size 1 (0) */
312 .Lscope3:
314 .global OSTaskStatHook
316 OSTaskStatHook:
183:os/modify/os_cpu_c.c **** }
184:os/modify/os_cpu_c.c **** #endif
185:os/modify/os_cpu_c.c ****
186:os/modify/os_cpu_c.c **** /*
187:os/modify/os_cpu_c.c **** ***************************************************************************************************
188:os/modify/os_cpu_c.c **** * STATISTIC TASK HOOK
189:os/modify/os_cpu_c.c **** *
190:os/modify/os_cpu_c.c **** * Description: This function is called every second by uC/OS-II's statistics task. This allows you
191:os/modify/os_cpu_c.c **** * application to add functionality to the statistics task.
192:os/modify/os_cpu_c.c **** *
193:os/modify/os_cpu_c.c **** * Arguments : none
194:os/modify/os_cpu_c.c **** ***************************************************************************************************
195:os/modify/os_cpu_c.c **** */
196:os/modify/os_cpu_c.c **** #if OS_CPU_HOOKS_EN > 0
197:os/modify/os_cpu_c.c **** void OSTaskStatHook (void)
198:os/modify/os_cpu_c.c **** {
318 .LM42:
319 /* prologue: frame size=0 */
320 /* prologue end (size=0) */
321 /* epilogue: frame size=0 */
322 0062 0895 ret
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -