|
370 | 370 | <member name="thread_wait_list" type="*osRtxThread_t" offset="48" info="Wait list (no timeout)"/>
|
371 | 371 | <member name="thread_terminate_list" type="*osRtxThread_t" offset="52" info="Terminate list"/>
|
372 | 372 |
|
373 |
| - <member name="thread_robin_thread" type="*osRtxThread_t" offset="56" info="Round Robin thread"/> |
374 |
| - <member name="thread_robin_tick" type="uint32_t" offset="60" info="Round Robin time tick"/> |
| 373 | + <member name="thread_robin_thread" type="*osRtxThread_t" offset="60" info="Round Robin thread"/> |
375 | 374 | <member name="thread_timeout" type="uint32_t" offset="64" info="Round Robin timeout"/>
|
376 | 375 |
|
377 | 376 | <member name="timer_list" type="*osRtxTimer_t" offset="68" info="Active timer list"/>
|
|
404 | 403 | <member name="mpi_semaphore" type="*osRtxMpInfo_t" offset="152" info="Semaphore control blocks"/>
|
405 | 404 | <member name="mpi_memory_pool" type="*osRtxMpInfo_t" offset="156" info="Memory pool control blocks"/>
|
406 | 405 | <member name="mpi_message_queue" type="*osRtxMpInfo_t" offset="160" info="Message queue control blocks"/>
|
| 406 | + |
| 407 | + <var name="robin_tick" type="uint32_t" info="Round Robin time tick (thread_robin_thread.delay)"/> |
407 | 408 | </typedef>
|
408 | 409 |
|
409 | 410 | <!-- OS Runtime Object Memory Usage structure -->
|
|
822 | 823 | <readlist cond="(mem_list_com[i].len & 1) && (mem_list_com[i].id == 0xFA)" name="QCB" type="osRtxMessageQueue_t" offset="addr" count="1" />
|
823 | 824 | </list>
|
824 | 825 |
|
825 |
| - <!-- Read thread wait list --> |
826 |
| - <readlist name="TWL" cond="RTX_En && os_Info.thread_wait_list" type="osRtxThread_t" offset="os_Info.thread_wait_list" next="delay_next"/> |
827 |
| - |
828 | 826 | <!-- Validate and process Thread control blocks -->
|
829 | 827 | <list name="i" start="0" limit="TCB._count">
|
830 | 828 | <calc>
|
831 | 829 | TCB[i].cb_valid = (TCB[i].id == 0xF1) && (TCB[i].state != 0) && (TCB[i].sp != 0);
|
832 | 830 | TCB[i].sp_valid = 1;
|
833 | 831 | </calc>
|
834 | 832 |
|
| 833 | + <!-- Set Round Robin time tick from the running thread tick value --> |
| 834 | + <calc cond="(TCB[i].state == 2) && os_Config.robin_timeout"> |
| 835 | + os_Info.robin_tick = TCB[i].delay; |
| 836 | + </calc> |
| 837 | + |
835 | 838 | <!-- Stack pointer for running thread -->
|
836 | 839 | <calc cond="(TCB[i].state == 2) && (__Running == 0)">
|
837 | 840 | ipsr = __GetRegVal("XPSR") & 0x01FF;
|
|
1099 | 1102 | <item property="Kernel State" value="%E[os_Info.kernel_state]" cond="RTX_En != 0"/>
|
1100 | 1103 | <item property="Kernel Tick Count" value="%d[os_Info.kernel_tick]" cond="RTX_En != 0"/>
|
1101 | 1104 | <item property="Kernel Tick Frequency" value="%d[os_Config.tick_freq]" cond="RTX_En != 0" />
|
1102 |
| - <item property="Round Robin" value="Disabled" cond="(os_Config.robin_timeout == 0) && (RTX_En != 0)" /> |
1103 |
| - <item property="Round Robin Tick Count" value="%d[os_Info.thread_robin_tick]" cond="(os_Config.robin_timeout > 0) && (RTX_En != 0)" /> |
1104 |
| - <item property="Round Robin Timeout" value="%d[os_Config.robin_timeout]" cond="(os_Config.robin_timeout > 0) && (RTX_En != 0)" /> |
1105 |
| - <item property="Global Dynamic Memory" value="Not used" cond="(os_Config.mem_common_size == 0) && (RTX_En != 0)"/> |
| 1105 | + <item property="Round Robin" value="Disabled" cond="(os_Config.robin_timeout == 0) && (RTX_En != 0)" /> |
| 1106 | + <item property="Round Robin Tick Count" value="%d[os_Info.robin_tick]" cond="(os_Config.robin_timeout > 0) && (RTX_En != 0)" /> |
| 1107 | + <item property="Round Robin Timeout" value="%d[os_Config.robin_timeout]" cond="(os_Config.robin_timeout > 0) && (RTX_En != 0)" /> |
| 1108 | + <item property="Global Dynamic Memory" value="Not used" cond="(os_Config.mem_common_size == 0) && (RTX_En != 0)"/> |
1106 | 1109 | <item property="Global Dynamic Memory" value="Base: %x[mem_head_com._addr], Size: %d[mem_head_com.size], Used: %d[mem_head_com.used], Max used: %d[mem_head_com.max_used]" cond="(os_Config.mem_common_size != 0) && (RTX_En != 0)"/>
|
1107 | 1110 | <item property="Stack Overrun Check" value="%t[os_Config.stack_check ? "Enabled" : "Disabled"]" cond="RTX_En != 0"/>
|
1108 | 1111 | <item property="Stack Usage Watermark" value="%t[os_Config.stack_wmark ? "Enabled" : "Disabled"]" cond="RTX_En != 0"/>
|
|
0 commit comments