Home
last modified time | relevance | path

Searched refs:g_active_task (Results 1 – 25 of 35) sorted by relevance

12

/AliOS-Things-master/kernel/rhino/
A Dk_sched.c118 if (g_active_task[cur_cpu_num]->task_state == K_RDY) { in core_sched()
134 if (g_active_task[cur_cpu_num]->task_state == K_RDY) { in core_sched()
148 if (preferred_task == g_active_task[cur_cpu_num]) { in core_sched()
159 g_active_task[cur_cpu_num]->cur_exc = 0; in core_sched()
218 if (preferred_task == g_active_task[cur_cpu_num]) { in core_sched()
300 low_pri = g_active_task[0]->prio; in task_sched_to_cpu()
302 if (low_pri < g_active_task[i + 1]->prio) { in task_sched_to_cpu()
303 low_pri = g_active_task[i + 1]->prio; in task_sched_to_cpu()
394 if (g_active_task[cpu_cur_get()] != task) { in ready_list_rm()
460 if (g_active_task[cpu_num] == task) { in preferred_cpu_ready_task_get()
[all …]
A Dk_sys.c103 g_active_task[i] = g_preferred_ready_task[i]; in krhino_start()
104 g_active_task[i]->cur_exc = 1; in krhino_start()
109 g_active_task[0] = preferred_task; in krhino_start()
206 if (g_active_task[cur_cpu_num]->sched_policy == KSCHED_CFS) { in krhino_intrpt_exit()
207 if (g_active_task[cur_cpu_num]->task_state == K_RDY) { in krhino_intrpt_exit()
222 if (g_active_task[cur_cpu_num]->sched_policy == KSCHED_CFS) { in krhino_intrpt_exit()
223 if (g_active_task[cur_cpu_num]->task_state == K_RDY) { in krhino_intrpt_exit()
236 if (preferred_task == g_active_task[cur_cpu_num]) { in krhino_intrpt_exit()
241 TRACE_INTRPT_TASK_SWITCH(g_active_task[cur_cpu_num], preferred_task); in krhino_intrpt_exit()
244 if (g_active_task[cur_cpu_num] == &g_idle_task[cur_cpu_num]) { in krhino_intrpt_exit()
[all …]
A Dk_mutex.c104 TRACE_MUTEX_DEL(g_active_task[cpu_cur_get()], mutex); in krhino_mutex_del()
181 TRACE_MUTEX_DEL(g_active_task[cpu_cur_get()], mutex); in krhino_mutex_dyn_del()
309 if (g_active_task[cur_cpu_num] == mutex->mutex_task) { in krhino_mutex_lock()
327 mutex->mutex_task = g_active_task[cur_cpu_num]; in krhino_mutex_lock()
330 g_active_task[cur_cpu_num]->mutex_list = mutex; in krhino_mutex_lock()
334 TRACE_MUTEX_GET(g_active_task[cur_cpu_num], mutex, ticks); in krhino_mutex_lock()
355 if (g_active_task[cur_cpu_num]->prio < mutex_task->prio) { in krhino_mutex_lock()
358 TRACE_TASK_PRI_INV(g_active_task[cur_cpu_num], mutex_task); in krhino_mutex_lock()
366 TRACE_MUTEX_GET_BLK(g_active_task[cur_cpu_num], mutex, ticks); in krhino_mutex_lock()
405 if (g_active_task[cur_cpu_num] != mutex->mutex_task) { in krhino_mutex_unlock()
[all …]
A Dk_stats.c41 cur = g_active_task[cpu_cur_get()]; in krhino_stack_ovf_check()
82 cur = g_active_task[cpu_cur_get()]; in krhino_stack_ovf_check()
147 if (g_active_task[cpu_cur_get()]->task_intrpt_disable_time_max < intrpt_disable_time) { in krhino_task_sched_stats_get()
148 g_active_task[cpu_cur_get()]->task_intrpt_disable_time_max = intrpt_disable_time; in krhino_task_sched_stats_get()
154 if (g_active_task[cpu_cur_get()]->task_sched_disable_time_max < g_cur_sched_disable_max_time) { in krhino_task_sched_stats_get()
155 g_active_task[cpu_cur_get()]->task_sched_disable_time_max = g_cur_sched_disable_max_time; in krhino_task_sched_stats_get()
165 exec_time = cur_time - g_active_task[cpu_cur_get()]->task_time_start; in krhino_task_sched_stats_get()
167 g_active_task[cpu_cur_get()]->task_time_total_run += (uint64_t)exec_time; in krhino_task_sched_stats_get()
168 if (g_active_task[cpu_cur_get()]->task_state == K_RDY) { in krhino_task_sched_stats_get()
169 g_active_task[cpu_cur_get()]->task_time_this_run += exec_time; in krhino_task_sched_stats_get()
[all …]
A Dk_sem.c84 TRACE_SEM_DEL(g_active_task[cpu_cur_get()], sem); in krhino_sem_del()
150 TRACE_SEM_DEL(g_active_task[cpu_cur_get()], sem); in krhino_sem_dyn_del()
181 TRACE_SEM_OVERFLOW(g_active_task[cur_cpu_num], sem); in sem_give()
194 TRACE_SEM_CNT_INCREASE(g_active_task[cur_cpu_num], sem); in sem_give()
202 TRACE_SEM_TASK_WAKE(g_active_task[cur_cpu_num], in sem_give()
209 TRACE_SEM_TASK_WAKE(g_active_task[cur_cpu_num], in sem_give()
260 TRACE_SEM_GET_SUCCESS(g_active_task[cur_cpu_num], sem); in krhino_sem_take()
277 pend_to_blk_obj(&sem->blk_obj, g_active_task[cur_cpu_num], ticks); in krhino_sem_take()
279 TRACE_SEM_GET_BLK(g_active_task[cur_cpu_num], sem, ticks); in krhino_sem_take()
285 stat = pend_state_end_proc(g_active_task[cpu_cur_get()], &sem->blk_obj); in krhino_sem_take()
A Dk_event.c82 TRACE_EVENT_DEL(g_active_task[cpu_cur_get()], event); in krhino_event_del()
210 TRACE_EVENT_GET(g_active_task[cur_cpu_num], event); in krhino_event_get()
229 g_active_task[cur_cpu_num]->pend_option = opt; in krhino_event_get()
230 g_active_task[cur_cpu_num]->pend_flags = flags; in krhino_event_get()
231 g_active_task[cur_cpu_num]->pend_info = actl_flags; in krhino_event_get()
233 pend_to_blk_obj(&event->blk_obj, g_active_task[cur_cpu_num], ticks); in krhino_event_get()
235 TRACE_EVENT_GET_BLK(g_active_task[cur_cpu_num], event, ticks); in krhino_event_get()
242 stat = pend_state_end_proc(g_active_task[cpu_cur_get()], &event->blk_obj); in krhino_event_get()
309 TRACE_EVENT_TASK_WAKE(g_active_task[cpu_cur_get()], task, event); in event_set()
A Dk_task.c229 task_cur = g_active_task[cpu_cur_get()]; in krhino_task_cpu_bind()
247 task_cur = g_active_task[cpu_cur_get()]; in krhino_task_cpu_unbind()
357 g_active_task[cur_cpu_num]->task_state = K_SLEEP; in krhino_task_sleep()
393 task = g_active_task[cpu_cur_get()]; in krhino_cur_task_get()
416 if (task == g_active_task[cur_cpu_num]) { in task_suspend()
803 task = g_active_task[cur_cpu_num]; in krhino_task_del()
821 task = g_active_task[cur_cpu_num]; in krhino_task_del()
844 if (task == g_active_task[cpu_cur_get()]) { in krhino_task_del()
914 task = g_active_task[cur_cpu_num]; in krhino_task_dyn_del()
933 task = g_active_task[cur_cpu_num]; in krhino_task_dyn_del()
[all …]
A Dk_buf_queue.c228 TRACE_BUF_QUEUE_MAX(g_active_task[cur_cpu_num], queue, msg, msg_size); in buf_queue_send()
263 TRACE_BUF_QUEUE_POST(g_active_task[cur_cpu_num], queue, msg, msg_size); in buf_queue_send()
276 TRACE_BUF_QUEUE_TASK_WAKE(g_active_task[cur_cpu_num], task, queue); in buf_queue_send()
335 g_active_task[cur_cpu_num]->msg = msg; in krhino_buf_queue_recv()
336 pend_to_blk_obj(&queue->blk_obj, g_active_task[cur_cpu_num], ticks); in krhino_buf_queue_recv()
338 TRACE_BUF_QUEUE_GET_BLK(g_active_task[cur_cpu_num], queue, ticks); in krhino_buf_queue_recv()
346 ret = pend_state_end_proc(g_active_task[cur_cpu_num], &queue->blk_obj); in krhino_buf_queue_recv()
350 *size = g_active_task[cur_cpu_num]->bq_msg_size; in krhino_buf_queue_recv()
/AliOS-Things-master/components/debug/src/
A Ddebug_infoget.c29 task_running = g_active_task[cpu_cur_get()]; in debug_task_find_running()
63 if (g_active_task[i] == task in debug_task_is_running()
66 } else if (g_active_task[i] == task) { in debug_task_is_running()
80 if (g_active_task[cpu_cur_get()] == NULL || g_intrpt_nested_level[cpu_cur_get()] != 0) { in debug_task_id_now()
84 return g_active_task[cpu_cur_get()]->task_id; in debug_task_id_now()
90 task = g_active_task[cpu_cur_get()]; in debug_task_stack_bottom()
A Ddebug_cpuusage.c61 exec_time = cur_time - g_active_task[i]->task_time_start; in debug_task_cpu_usage_stats()
63 g_active_task[i]->task_time_total_run += (sys_time_t)exec_time; in debug_task_cpu_usage_stats()
64 g_active_task[i]->task_time_start = cur_time; in debug_task_cpu_usage_stats()
68 exec_time = cur_time - g_active_task[0]->task_time_start; in debug_task_cpu_usage_stats()
70 g_active_task[0]->task_time_total_run += (sys_time_t)exec_time; in debug_task_cpu_usage_stats()
71 g_active_task[0]->task_time_start = cur_time; in debug_task_cpu_usage_stats()
/AliOS-Things-master/hardware/arch/riscv/src/rv32_16gpr/
A Dcsky_sched.c54 tee_caller_task = (tee_caller_task == NULL) ? g_active_task[cpu_cur_get()] : tee_caller_task; in csky_get_tee_caller_task()
65 if (tee_caller_task == g_active_task[cpu_cur_get()]) { in csky_deal_tee_caller_task()
73 if (tee_caller_task == g_active_task[cpu_cur_get()]) { in csky_deal_tee_caller_task()
/AliOS-Things-master/hardware/arch/riscv/src/rv32_32gpr/
A Dcsky_sched.c54 tee_caller_task = (tee_caller_task == NULL) ? g_active_task[cpu_cur_get()] : tee_caller_task; in csky_get_tee_caller_task()
65 if (tee_caller_task == g_active_task[cpu_cur_get()]) { in csky_deal_tee_caller_task()
73 if (tee_caller_task == g_active_task[cpu_cur_get()]) { in csky_deal_tee_caller_task()
/AliOS-Things-master/hardware/arch/riscv/src/rv32f_32gpr/
A Dcsky_sched.c54 tee_caller_task = (tee_caller_task == NULL) ? g_active_task[cpu_cur_get()] : tee_caller_task; in csky_get_tee_caller_task()
65 if (tee_caller_task == g_active_task[cpu_cur_get()]) { in csky_deal_tee_caller_task()
73 if (tee_caller_task == g_active_task[cpu_cur_get()]) { in csky_deal_tee_caller_task()
/AliOS-Things-master/hardware/arch/riscv/src/rv32fd_32gpr/
A Dcsky_sched.c54 tee_caller_task = (tee_caller_task == NULL) ? g_active_task[cpu_cur_get()] : tee_caller_task; in csky_get_tee_caller_task()
65 if (tee_caller_task == g_active_task[cpu_cur_get()]) { in csky_deal_tee_caller_task()
73 if (tee_caller_task == g_active_task[cpu_cur_get()]) { in csky_deal_tee_caller_task()
/AliOS-Things-master/hardware/arch/armv7m/armcc/m3/
A Dport_s.S6 EXTERN g_active_task
119 ;g_active_task->task_stack = context region
120 LDR R1, =g_active_task
132 LDR R0, =g_active_task
136 ;R0 = g_active_task->task_stack = context region
/AliOS-Things-master/hardware/arch/armv7m/iccarm/m3/
A Dport_s.S6 EXTERN g_active_task
119 ;g_active_task->task_stack = context region
120 LDR R1, =g_active_task
132 LDR R0, =g_active_task
136 ;R0 = g_active_task->task_stack = context region
/AliOS-Things-master/hardware/arch/armv7m/gcc/m3/
A Dport_s.sx6 .extern g_active_task
125 @g_active_task->task_stack = context region
126 LDR R1, =g_active_task
139 LDR R0, =g_active_task
143 @R0 = g_active_task->task_stack = context region
/AliOS-Things-master/hardware/arch/armv7m/iccarm/m4/
A Dport_s.S6 EXTERN g_active_task
127 ;g_active_task->task_stack = context region
128 LDR R1, =g_active_task
140 LDR R0, =g_active_task
144 ;R0 = g_active_task->task_stack = context region
/AliOS-Things-master/hardware/arch/armv7m/iccarm/m7/
A Dport_s.S6 EXTERN g_active_task
127 ;g_active_task->task_stack = context region
128 LDR R1, =g_active_task
140 LDR R0, =g_active_task
144 ;R0 = g_active_task->task_stack = context region
/AliOS-Things-master/hardware/arch/armv7m/armcc/m4/
A Dport_s.S6 EXTERN g_active_task
127 ;g_active_task->task_stack = context region
128 LDR R1, =g_active_task
140 LDR R0, =g_active_task
144 ;R0 = g_active_task->task_stack = context region
/AliOS-Things-master/hardware/arch/armv7m/armcc/m7/
A Dport_s.S6 EXTERN g_active_task
127 ;g_active_task->task_stack = context region
128 LDR R1, =g_active_task
140 LDR R0, =g_active_task
144 ;R0 = g_active_task->task_stack = context region
/AliOS-Things-master/hardware/arch/armv7m/gcc/m4/
A Dport_s.sx6 .extern g_active_task
133 @g_active_task->task_stack = context region
134 LDR R1, =g_active_task
147 LDR R0, =g_active_task
151 @R0 = g_active_task->task_stack = context region
/AliOS-Things-master/hardware/arch/armv7m/gcc/m7/
A Dport_s.sx6 .extern g_active_task
133 @g_active_task->task_stack = context region
134 LDR R1, =g_active_task
147 LDR R0, =g_active_task
151 @R0 = g_active_task->task_stack = context region
/AliOS-Things-master/hardware/arch/armv8m/gcc/m33/
A Dport_s.sx6 .extern g_active_task
133 @g_active_task->task_stack = context region
134 LDR R1, =g_active_task
147 LDR R0, =g_active_task
151 @R0 = g_active_task->task_stack = context region
/AliOS-Things-master/kernel/rhino/include/
A Dk_internal.h31 extern ktask_t *g_active_task[RHINO_CONFIG_CPU_NUM];
134 if (g_active_task[0] == task) { in is_task_exec()
149 if ((g_active_task[cur_cpu_num]->cancel == 1u) && (obj->blk_obj.cancel == 1u)) {\

Completed in 41 milliseconds

12