/ThreadX-v6.4.1/ports_smp/mips32_interaptiv_smp/gnu/src/ |
D | tx_thread_schedule.S | 87 lw $8, ($9) # Pickup next thread to execute 88 beq $8, $0, _tx_thread_schedule_idle_system # If not-NULL, check the thread's ready bit 134 lw $9, 152($8) # Pickup the thread's VPE control register 156 the thread. */ 160 mtc0 $8, C0_TCContext # Set TCContext to current thread 165 or $16, $8, $0 # Save thread pointer into non-volatile 166 or $4, $8, $0 # Move thread pointer into input register 167 la $9, _tx_el_thread_running # Build address of thread running event routine 170 or $8, $16, $0 # Recover thread pointer 176 la $9, _tx_thread_current_ptr # Pickup current thread pointer address [all …]
|
/ThreadX-v6.4.1/ports/cortex_m3/ghs/src/ |
D | tx_thread_schedule.arm | 37 ;/* This function waits for a thread control block pointer to appear in */ 38 ;/* the _tx_thread_execute_ptr variable. Once a thread pointer appears */ 39 ;/* in the variable, the corresponding thread is resumed. */ 56 ;/* _tx_thread_system_return Return to system from thread */ 57 ;/* _tx_thread_context_restore Restore thread's context */ 112 ; /* Get current thread value and new thread pointer. */ 118 ; /* Call the thread exit function to indicate the thread is no longer executing. */ 122 BL _tx_execution_thread_exit ; Call the thread exit function 126 LDR r0, =_tx_thread_current_ptr ; Build current thread pointer address 127 LDR r2, =_tx_thread_execute_ptr ; Build execute thread pointer address [all …]
|
/ThreadX-v6.4.1/ports/cortex_m7/ghs/src/ |
D | tx_thread_schedule.arm | 37 ;/* This function waits for a thread control block pointer to appear in */ 38 ;/* the _tx_thread_execute_ptr variable. Once a thread pointer appears */ 39 ;/* in the variable, the corresponding thread is resumed. */ 56 ;/* _tx_thread_system_return Return to system from thread */ 57 ;/* _tx_thread_context_restore Restore thread's context */ 120 ; /* Get current thread value and new thread pointer. */ 126 ; /* Call the thread exit function to indicate the thread is no longer executing. */ 130 BL _tx_execution_thread_exit ; Call the thread exit function 134 LDR r0, =_tx_thread_current_ptr ; Build current thread pointer address 135 LDR r2, =_tx_thread_execute_ptr ; Build execute thread pointer address [all …]
|
/ThreadX-v6.4.1/ports_arch/ARMv7-M/threadx/ghs/src/ |
D | tx_thread_schedule.arm | 36 /* This function waits for a thread control block pointer to appear in */ 37 /* the _tx_thread_execute_ptr variable. Once a thread pointer appears */ 38 /* in the variable, the corresponding thread is resumed. */ 55 /* _tx_thread_system_return Return to system from thread */ 56 /* _tx_thread_context_restore Restore thread's context */ 116 /* Get current thread value and new thread pointer. */ 121 /* Call the thread exit function to indicate the thread is no longer executing. */ 124 BL _tx_execution_thread_exit // Call the thread exit function 129 LDR r0, =_tx_thread_current_ptr // Build current thread pointer address 130 LDR r2, =_tx_thread_execute_ptr // Build execute thread pointer address [all …]
|
/ThreadX-v6.4.1/ports/cortex_m4/ghs/src/ |
D | tx_thread_schedule.arm | 37 ;/* This function waits for a thread control block pointer to appear in */ 38 ;/* the _tx_thread_execute_ptr variable. Once a thread pointer appears */ 39 ;/* in the variable, the corresponding thread is resumed. */ 56 ;/* _tx_thread_system_return Return to system from thread */ 57 ;/* _tx_thread_context_restore Restore thread's context */ 120 ; /* Get current thread value and new thread pointer. */ 126 ; /* Call the thread exit function to indicate the thread is no longer executing. */ 130 BL _tx_execution_thread_exit ; Call the thread exit function 134 LDR r0, =_tx_thread_current_ptr ; Build current thread pointer address 135 LDR r2, =_tx_thread_execute_ptr ; Build execute thread pointer address [all …]
|
/ThreadX-v6.4.1/ports/cortex_r4/ghs/src/ |
D | tx_thread_schedule.arm | 52 /* This function waits for a thread control block pointer to appear in */ 53 /* the _tx_thread_execute_ptr variable. Once a thread pointer appears */ 54 /* in the variable, the corresponding thread is resumed. */ 71 /* _tx_thread_system_return Return to system from thread */ 72 /* _tx_thread_context_restore Restore thread's context */ 100 /* Wait for a thread to execute. */ 103 LDR r1, =_tx_thread_execute_ptr # Address of thread execute ptr 107 LDR r0, [r1] # Pickup next thread to execute 109 BEQ __tx_thread_schedule_loop # If so, keep looking for a thread 114 /* Yes! We have a thread to execute. Lockout interrupts and [all …]
|
/ThreadX-v6.4.1/utility/rtos_compatibility_layers/posix/ |
D | px_cond_broadcast.c | 92 TX_THREAD *thread; in pthread_cond_broadcast() local 116 thread = tx_thread_identify(); in pthread_cond_broadcast() 121 tx_thread_preemption_change(thread,0,&old_threshold); in pthread_cond_broadcast() 131 tx_thread_preemption_change(thread,old_threshold,&dummy); in pthread_cond_broadcast() 144 tx_thread_preemption_change(thread,old_threshold,&dummy); in pthread_cond_broadcast()
|
D | px_pth_join.c | 87 INT pthread_join(pthread_t thread, VOID **value_ptr) in pthread_join() argument 108 if ( current_ptr->pthreadID == thread) in pthread_join() 124 target_thread = posix_tid2thread(thread); in pthread_join() 138 target_ptr = posix_tid2tcb(thread); in pthread_join() 144 target_ptr = posix_tid2tcb(thread); in pthread_join() 170 current_ptr->joined_to_pthreadID = thread; in pthread_join()
|
/ThreadX-v6.4.1/ports/cortex_m3/keil/src/ |
D | tx_thread_schedule.s | 134 BL _tx_execution_thread_exit ; Call the thread exit function 138 MOV32 r0, _tx_thread_current_ptr ; Build current thread pointer address 139 MOV32 r2, _tx_thread_execute_ptr ; Build execute thread pointer address 141 LDR r1, [r0] ; Pickup current thread pointer 150 MRS r12, PSP ; Pickup PSP pointer (thread's stack pointer) 158 STR r12, [r1, #8] ; Save the thread stack pointer 176 LDR r1, [r2] ; Is there another thread ready to execute? 181 …TR r1, [r0] ; Setup the current thread pointer to the new thread 187 LDR r7, [r1, #4] ; Pickup the current thread run count 189 LDR r5, [r1, #24] ; Pickup thread's current time-slice [all …]
|
/ThreadX-v6.4.1/ports/cortex_a9/ghs/src/ |
D | tx_thread_schedule.arm | 52 /* This function waits for a thread control block pointer to appear in */ 53 /* the _tx_thread_execute_ptr variable. Once a thread pointer appears */ 54 /* in the variable, the corresponding thread is resumed. */ 71 /* _tx_thread_system_return Return to system from thread */ 72 /* _tx_thread_context_restore Restore thread's context */ 100 /* Wait for a thread to execute. */ 103 LDR r1, =_tx_thread_execute_ptr # Address of thread execute ptr 107 LDR r0, [r1] # Pickup next thread to execute 109 BEQ __tx_thread_schedule_loop # If so, keep looking for a thread 114 /* Yes! We have a thread to execute. Lockout interrupts and [all …]
|
/ThreadX-v6.4.1/ports/cortex_r7/ghs/src/ |
D | tx_thread_schedule.arm | 52 /* This function waits for a thread control block pointer to appear in */ 53 /* the _tx_thread_execute_ptr variable. Once a thread pointer appears */ 54 /* in the variable, the corresponding thread is resumed. */ 71 /* _tx_thread_system_return Return to system from thread */ 72 /* _tx_thread_context_restore Restore thread's context */ 100 /* Wait for a thread to execute. */ 103 LDR r1, =_tx_thread_execute_ptr # Address of thread execute ptr 107 LDR r0, [r1] # Pickup next thread to execute 109 BEQ __tx_thread_schedule_loop # If so, keep looking for a thread 114 /* Yes! We have a thread to execute. Lockout interrupts and [all …]
|
/ThreadX-v6.4.1/ports/cortex_a8/ghs/src/ |
D | tx_thread_schedule.arm | 52 /* This function waits for a thread control block pointer to appear in */ 53 /* the _tx_thread_execute_ptr variable. Once a thread pointer appears */ 54 /* in the variable, the corresponding thread is resumed. */ 71 /* _tx_thread_system_return Return to system from thread */ 72 /* _tx_thread_context_restore Restore thread's context */ 100 /* Wait for a thread to execute. */ 103 LDR r1, =_tx_thread_execute_ptr # Address of thread execute ptr 107 LDR r0, [r1] # Pickup next thread to execute 109 BEQ __tx_thread_schedule_loop # If so, keep looking for a thread 114 /* Yes! We have a thread to execute. Lockout interrupts and [all …]
|
/ThreadX-v6.4.1/ports/cortex_a7/ghs/src/ |
D | tx_thread_schedule.arm | 52 /* This function waits for a thread control block pointer to appear in */ 53 /* the _tx_thread_execute_ptr variable. Once a thread pointer appears */ 54 /* in the variable, the corresponding thread is resumed. */ 71 /* _tx_thread_system_return Return to system from thread */ 72 /* _tx_thread_context_restore Restore thread's context */ 100 /* Wait for a thread to execute. */ 103 LDR r1, =_tx_thread_execute_ptr # Address of thread execute ptr 107 LDR r0, [r1] # Pickup next thread to execute 109 BEQ __tx_thread_schedule_loop # If so, keep looking for a thread 114 /* Yes! We have a thread to execute. Lockout interrupts and [all …]
|
/ThreadX-v6.4.1/ports/cortex_a5/ghs/src/ |
D | tx_thread_schedule.arm | 52 /* This function waits for a thread control block pointer to appear in */ 53 /* the _tx_thread_execute_ptr variable. Once a thread pointer appears */ 54 /* in the variable, the corresponding thread is resumed. */ 71 /* _tx_thread_system_return Return to system from thread */ 72 /* _tx_thread_context_restore Restore thread's context */ 100 /* Wait for a thread to execute. */ 103 LDR r1, =_tx_thread_execute_ptr # Address of thread execute ptr 107 LDR r0, [r1] # Pickup next thread to execute 109 BEQ __tx_thread_schedule_loop # If so, keep looking for a thread 114 /* Yes! We have a thread to execute. Lockout interrupts and [all …]
|
/ThreadX-v6.4.1/ports/cortex_r5/ghs/src/ |
D | tx_thread_schedule.arm | 52 /* This function waits for a thread control block pointer to appear in */ 53 /* the _tx_thread_execute_ptr variable. Once a thread pointer appears */ 54 /* in the variable, the corresponding thread is resumed. */ 71 /* _tx_thread_system_return Return to system from thread */ 72 /* _tx_thread_context_restore Restore thread's context */ 100 /* Wait for a thread to execute. */ 103 LDR r1, =_tx_thread_execute_ptr # Address of thread execute ptr 107 LDR r0, [r1] # Pickup next thread to execute 109 BEQ __tx_thread_schedule_loop # If so, keep looking for a thread 114 /* Yes! We have a thread to execute. Lockout interrupts and [all …]
|
/ThreadX-v6.4.1/ports/rxv1/gnu/src/ |
D | tx_thread_context_save.S | 120 MOV.L #__tx_thread_current_ptr, R2 ; Pickup current thread pointer 130 MOV.L R2, [-R1] ; Save PSW on thread stack 132 MOV.L R2, [-R1] ; Save PC on thread stack 134 MOV.L R2, [-R1] ; Save R2 on thread stack 136 MOV.L R2, [-R1] ; Save R1 on thread stack 137 MOV.L R5, [-R1] ; Save R5 on thread stack 138 MOV.L R4, [-R1] ; Save R4 on thread stack 139 MOV.L R3, [-R1] ; Save R3 on thread stack 140 MOV.L R15, [-R1] ; Save R15 on thread stack 141 MOV.L R14, [-R1] ; Save R14 on thread stack [all …]
|
/ThreadX-v6.4.1/ports/rxv1/iar/src/ |
D | tx_thread_context_save.s | 120 MOV.L #__tx_thread_current_ptr, R2 ; Pickup current thread pointer 130 MOV.L R2, [-R1] ; Save PSW on thread stack 132 MOV.L R2, [-R1] ; Save PC on thread stack 134 MOV.L R2, [-R1] ; Save R2 on thread stack 136 MOV.L R2, [-R1] ; Save R1 on thread stack 137 MOV.L R5, [-R1] ; Save R5 on thread stack 138 MOV.L R4, [-R1] ; Save R4 on thread stack 139 MOV.L R3, [-R1] ; Save R3 on thread stack 140 MOV.L R15, [-R1] ; Save R15 on thread stack 141 MOV.L R14, [-R1] ; Save R14 on thread stack [all …]
|
/ThreadX-v6.4.1/ports/xtensa/xcc/src/ |
D | tx_xtensa_stack_error_handler.c | 97 VOID _tx_xtensa_stack_error_handler(TX_THREAD * thread) in _tx_xtensa_stack_error_handler() argument 103 register TX_THREAD * thd __asm__ ("a4") = thread; in _tx_xtensa_stack_error_handler() 112 write(1, thread->tx_thread_name, strlen(thread->tx_thread_name)); in _tx_xtensa_stack_error_handler()
|
/ThreadX-v6.4.1/ports/rxv2/gnu/src/ |
D | tx_thread_context_save.S | 131 MOV.L #__tx_thread_current_ptr, R2 ; Pickup current thread pointer 141 MOV.L R2, [-R1] ; Save PSW on thread stack 143 MOV.L R2, [-R1] ; Save PC on thread stack 145 MOV.L R2, [-R1] ; Save R2 on thread stack 147 MOV.L R2, [-R1] ; Save R1 on thread stack 148 MOV.L R5, [-R1] ; Save R5 on thread stack 149 MOV.L R4, [-R1] ; Save R4 on thread stack 150 MOV.L R3, [-R1] ; Save R3 on thread stack 151 MOV.L R15, [-R1] ; Save R15 on thread stack 152 MOV.L R14, [-R1] ; Save R14 on thread stack [all …]
|
/ThreadX-v6.4.1/ports_module/rxv2/iar/module_manager/src/ |
D | tx_thread_context_save.s | 127 MOV.L #__tx_thread_current_ptr, R2 ; Pickup current thread pointer 137 MOV.L R2, [-R1] ; Save PSW on thread stack 139 MOV.L R2, [-R1] ; Save PC on thread stack 141 MOV.L R2, [-R1] ; Save R2 on thread stack 143 MOV.L R2, [-R1] ; Save R1 on thread stack 144 MOV.L R5, [-R1] ; Save R5 on thread stack 145 MOV.L R4, [-R1] ; Save R4 on thread stack 146 MOV.L R3, [-R1] ; Save R3 on thread stack 147 MOV.L R15, [-R1] ; Save R15 on thread stack 148 MOV.L R14, [-R1] ; Save R14 on thread stack [all …]
|
/ThreadX-v6.4.1/ports/rxv2/iar/src/ |
D | tx_thread_context_save.s | 131 MOV.L #__tx_thread_current_ptr, R2 ; Pickup current thread pointer 141 MOV.L R2, [-R1] ; Save PSW on thread stack 143 MOV.L R2, [-R1] ; Save PC on thread stack 145 MOV.L R2, [-R1] ; Save R2 on thread stack 147 MOV.L R2, [-R1] ; Save R1 on thread stack 148 MOV.L R5, [-R1] ; Save R5 on thread stack 149 MOV.L R4, [-R1] ; Save R4 on thread stack 150 MOV.L R3, [-R1] ; Save R3 on thread stack 151 MOV.L R15, [-R1] ; Save R15 on thread stack 152 MOV.L R14, [-R1] ; Save R14 on thread stack [all …]
|
/ThreadX-v6.4.1/ports/rxv3/gnu/src/ |
D | tx_thread_context_save.S | 131 MOV.L #__tx_thread_current_ptr, R2 ; Pickup current thread pointer 141 MOV.L R2, [-R1] ; Save PSW on thread stack 143 MOV.L R2, [-R1] ; Save PC on thread stack 145 MOV.L R2, [-R1] ; Save R2 on thread stack 147 MOV.L R2, [-R1] ; Save R1 on thread stack 148 MOV.L R5, [-R1] ; Save R5 on thread stack 149 MOV.L R4, [-R1] ; Save R4 on thread stack 150 MOV.L R3, [-R1] ; Save R3 on thread stack 151 MOV.L R15, [-R1] ; Save R15 on thread stack 152 MOV.L R14, [-R1] ; Save R14 on thread stack [all …]
|
/ThreadX-v6.4.1/ports/rxv3/iar/src/ |
D | tx_thread_context_save.s | 131 MOV.L #__tx_thread_current_ptr, R2 ; Pickup current thread pointer 141 MOV.L R2, [-R1] ; Save PSW on thread stack 143 MOV.L R2, [-R1] ; Save PC on thread stack 145 MOV.L R2, [-R1] ; Save R2 on thread stack 147 MOV.L R2, [-R1] ; Save R1 on thread stack 148 MOV.L R5, [-R1] ; Save R5 on thread stack 149 MOV.L R4, [-R1] ; Save R4 on thread stack 150 MOV.L R3, [-R1] ; Save R3 on thread stack 151 MOV.L R15, [-R1] ; Save R15 on thread stack 152 MOV.L R14, [-R1] ; Save R14 on thread stack [all …]
|
/ThreadX-v6.4.1/ports/cortex_m4/keil/src/ |
D | tx_thread_schedule.s | 142 BL _tx_execution_thread_exit ; Call the thread exit function 146 MOV32 r0, _tx_thread_current_ptr ; Build current thread pointer address 147 MOV32 r2, _tx_thread_execute_ptr ; Build execute thread pointer address 149 LDR r1, [r0] ; Pickup current thread pointer 158 MRS r12, PSP ; Pickup PSP pointer (thread's stack pointer) 172 STR r12, [r1, #8] ; Save the thread stack pointer 190 LDR r1, [r2] ; Is there another thread ready to execute? 195 …TR r1, [r0] ; Setup the current thread pointer to the new thread 201 LDR r7, [r1, #4] ; Pickup the current thread run count 203 LDR r5, [r1, #24] ; Pickup thread's current time-slice [all …]
|
/ThreadX-v6.4.1/ports/arm11/iar/src/ |
D | tx_thread_schedule.s | 104 LDR r1, =_tx_thread_execute_ptr ; Address of thread execute ptr 108 LDR r0, [r1, #0] ; Pickup next thread to execute 110 BEQ __tx_thread_schedule_loop ; If so, keep looking for a thread 123 LDR r1, =_tx_thread_current_ptr ; Pickup address of current thread 124 STR r0, [r1, #0] ; Setup current thread pointer 130 LDR r3, [r0, #24] ; Pickup time-slice for this thread 131 ADD r2, r2, #1 ; Increment thread run-counter 149 BL _tx_execution_thread_enter ; Call the thread execution enter function 158 LDMNEIA sp!, {r0-r12, lr, pc}^ ; Return to point of thread interrupt 159 LDMIA sp!, {r4-r11, lr} ; Return to thread synchronously
|