URL
https://opencores.org/ocsvn/open8_urisc/open8_urisc/trunk
[/] [open8_urisc/] [trunk/] [taskmgr/] [taskmgr_const.s] - Diff between revs 302 and 303
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 302 |
Rev 303 |
Line 480... |
Line 480... |
BNZ _TS_ADV_TN_\@ ; If it matches the task count
|
BNZ _TS_ADV_TN_\@ ; If it matches the task count
|
LDI R1, #$00 ; reset the counter to zero
|
LDI R1, #$00 ; reset the counter to zero
|
_TS_ADV_TN_\@:STA R1, TaskMgr.Next_Task ; Store the new value into Next_Task
|
_TS_ADV_TN_\@:STA R1, TaskMgr.Next_Task ; Store the new value into Next_Task
|
|
|
REINIT_STACK_BUFFER_PTR ; Lookup the new task's table pointer
|
REINIT_STACK_BUFFER_PTR ; Lookup the new task's table pointer
|
|
LDO R2,1 ; Copy [R3:R2]* -> R1:R0
|
LDO R2, PARAM_MAIN_ADDR_HIGH ; Push [R3:R2]* -> R1:R0
|
|
T0X R1
|
T0X R1
|
LDO R2, PARAM_MAIN_ADDR_LOW
|
LDX R2
|
RELOCATE_SP ; Update R1:R0 -> CPU SP
|
RELOCATE_SP ; Update R1:R0 -> CPU SP
|
|
|
REINIT_TASK_TABLE_PTR ; Setup R3:R2 to point to the task table
|
REINIT_TASK_TABLE_PTR ; Setup R3:R2 to point to the task table
|
|
|
; Rewrite the RAM WPR register for this task. Note that the WPR
|
; Rewrite the RAM WPR register for this task. Note that the WPR
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.