adds markers to scheduler for identification for plugins
This commit is contained in:
@@ -83,6 +83,7 @@ _tx_thread_schedule_loop:
|
|||||||
/* }
|
/* }
|
||||||
while(_tx_thread_execute_ptr == TX_NULL); */
|
while(_tx_thread_execute_ptr == TX_NULL); */
|
||||||
|
|
||||||
|
scheduler_found_thread:
|
||||||
/* Yes! We have a thread to execute. Lockout interrupts and
|
/* Yes! We have a thread to execute. Lockout interrupts and
|
||||||
transfer control to it. */
|
transfer control to it. */
|
||||||
csrci mstatus, 0x08 // Lockout interrupts
|
csrci mstatus, 0x08 // Lockout interrupts
|
||||||
@@ -300,6 +301,7 @@ _tx_thread_synch_return:
|
|||||||
#else
|
#else
|
||||||
addi sp, sp, 16*REGBYTES // Recover stack frame
|
addi sp, sp, 16*REGBYTES // Recover stack frame
|
||||||
#endif
|
#endif
|
||||||
|
synch_return_exit_label:
|
||||||
ret // Return to thread
|
ret // Return to thread
|
||||||
|
|
||||||
/* } */
|
/* } */
|
||||||
|
|||||||
@@ -99,6 +99,7 @@ _tx_thread_schedule_thread:
|
|||||||
|
|
||||||
/* }
|
/* }
|
||||||
while(_tx_thread_execute_ptr == TX_NULL); */
|
while(_tx_thread_execute_ptr == TX_NULL); */
|
||||||
|
scheduler_found_thread:
|
||||||
|
|
||||||
/* Publish the current thread pointer for this hart, then re-check the
|
/* Publish the current thread pointer for this hart, then re-check the
|
||||||
execute slot to avoid missing a concurrent execute-pointer update. */
|
execute slot to avoid missing a concurrent execute-pointer update. */
|
||||||
@@ -327,6 +328,7 @@ _tx_thread_synch_return:
|
|||||||
#else
|
#else
|
||||||
addi sp, sp, 16*REGBYTES // Recover stack frame
|
addi sp, sp, 16*REGBYTES // Recover stack frame
|
||||||
#endif
|
#endif
|
||||||
|
synch_return_exit_label:
|
||||||
ret // Return to thread
|
ret // Return to thread
|
||||||
|
|
||||||
/* } */
|
/* } */
|
||||||
|
|||||||
Reference in New Issue
Block a user