Lines Matching refs:thread
56 ;/* This function waits for a thread control block pointer to appear in */
57 ;/* the _tx_thread_execute_ptr variable. Once a thread pointer appears */
58 ;/* in the variable, the corresponding thread is resumed. */
75 ;/* _tx_thread_system_return Return to system from thread */
76 ;/* _tx_thread_context_restore Restore thread's context */
100 ; /* Wait for a thread to execute. */
103 MOV.L #__tx_thread_execute_ptr, R1 ; Address of thread to executer ptr
107 MOV.L [R1],R2 ; Pickup next thread to execute
109 BNE __tx_thread_thread_ready ; Not NULL, schedule the thread
110 ; Idle system - no thread is ready
130 MOV.L #__tx_thread_execute_ptr, R1 ; Address of thread to executer ptr
140 ; /* Yes! We have a thread to execute. Note that interrupts are locked out at this point. */
142 ; /* Setup the current thread pointer. */
146 MOV.L R2,[R3] ; Setup current thread pointer
148 ; /* Increment the run count for this thread. */
158 MOV.L 24[R2],R3 ; Pickup thread time-slice
162 ; /* Switch to the thread's stack. */