/Zephyr-latest/arch/posix/core/ |
D | swap.c | 46 _kernel.ready_q.cache->callee_saved.thread_status; in arch_swap() 53 arch_current_thread_set(_kernel.ready_q.cache); in arch_swap() 91 _kernel.ready_q.cache->callee_saved.thread_status; in arch_switch_to_main_thread() 97 arch_current_thread_set(_kernel.ready_q.cache); in arch_switch_to_main_thread() 113 if (_kernel.idle) { in posix_irq_check_idle_exit() 114 _kernel.idle = 0; in posix_irq_check_idle_exit()
|
/Zephyr-latest/arch/x86/core/ia32/ |
D | float.c | 197 fp_owner = _kernel.current_fp; in z_float_enable() 218 _kernel.current_fp = thread; in z_float_enable() 233 _kernel.current_fp = thread; in z_float_enable() 283 _kernel.current_fp = (struct k_thread *)0; in z_float_disable() 285 if (_kernel.current_fp == thread) { in z_float_disable() 286 _kernel.current_fp = (struct k_thread *)0; in z_float_disable()
|
/Zephyr-latest/kernel/ |
D | thread_monitor.c | 19 if (thread == _kernel.threads) { in z_thread_monitor_exit() 20 _kernel.threads = _kernel.threads->next_thread; in z_thread_monitor_exit() 24 prev_thread = _kernel.threads; in z_thread_monitor_exit() 55 for (thread = _kernel.threads; thread; thread = thread->next_thread) { in k_thread_foreach() 75 for (thread = _kernel.threads; thread; thread = thread->next_thread) { in k_thread_foreach_unlocked() 107 for (thread = _kernel.threads; thread; thread = thread->next_thread) { in k_thread_foreach_filter_by_cpu() 131 for (thread = _kernel.threads; thread; thread = thread->next_thread) { in k_thread_foreach_unlocked_filter_by_cpu()
|
D | idle.c | 53 _kernel.idle = z_get_next_timeout_expiry(); in idle() 70 if (k_is_pre_kernel() || !pm_system_suspend(_kernel.idle)) { in idle() 88 if (_kernel.ready_q.cache != arch_current_thread()) { in idle()
|
D | init.c | 46 struct z_kernel _kernel; variable 541 __ASSERT_NO_MSG(arch_mem_coherent(&_kernel)); in bg_thread_main() 598 stack_size, idle, &_kernel.cpus[i], in init_idle_thread() 611 _kernel.cpus[id].idle_thread = &z_idle_threads[id]; in z_init_cpu() 612 _kernel.cpus[id].id = id; in z_init_cpu() 613 _kernel.cpus[id].irq_stack = in z_init_cpu() 617 _kernel.cpus[id].usage = &_kernel.usage[id]; in z_init_cpu() 618 _kernel.cpus[id].usage->track_usage = in z_init_cpu() 631 k_obj_core_init_and_link(K_OBJ_CORE(&_kernel.cpus[id]), &obj_type_cpu); in z_init_cpu() 633 k_obj_core_stats_register(K_OBJ_CORE(&_kernel.cpus[id]), in z_init_cpu() [all …]
|
D | ipi.c | 20 atomic_or(&_kernel.pending_ipi, (atomic_val_t)ipi_mask); in flag_ipi() 57 cpu_thread = _kernel.cpus[i].current; in ipi_mask_create() 82 cpu_bitmap = (uint32_t)atomic_clear(&_kernel.pending_ipi); in signal_pending_ipi()
|
/Zephyr-latest/arch/arm/core/cortex_m/ |
D | exc_exit.c | 59 if (_kernel.cpus->current->base.prio >= 0) { in z_arm_exc_exit() 61 if (_kernel.ready_q.cache != _kernel.cpus->current) { in z_arm_exc_exit()
|
D | isr_wrapper.c | 59 if (_kernel.idle != 0) { in _isr_wrapper() 61 _kernel.idle = 0; in _isr_wrapper()
|
/Zephyr-latest/arch/riscv/include/ |
D | kernel_arch_func.h | 35 csr_write(mscratch, &_kernel.cpus[0]); in arch_kernel_init() 38 _kernel.cpus[0].arch.hartid = csr_read(mhartid); in arch_kernel_init() 39 _kernel.cpus[0].arch.online = true; in arch_kernel_init() 48 if (cpu_node_list[hart_x] == _kernel.cpus[0].arch.hartid) { in arch_kernel_init() 51 _kernel.cpus[cpu_num].arch.hartid = cpu_node_list[hart_x]; in arch_kernel_init() 93 return _kernel.cpus[0].nested != 0U; in arch_is_in_isr()
|
/Zephyr-latest/arch/riscv/core/ |
D | smp.c | 48 riscv_cpu_wake_flag = _kernel.cpus[cpu_num].arch.hartid; in arch_cpu_start() 58 if (_kernel.cpus[i].arch.hartid == hartid) { in arch_secondary_cpu_init() 62 csr_write(mscratch, &_kernel.cpus[cpu_num]); in arch_secondary_cpu_init() 64 _kernel.cpus[cpu_num].arch.online = true; in arch_secondary_cpu_init()
|
D | ipi_clint.c | 30 if ((i != id) && _kernel.cpus[i].arch.online && ((cpu_bitmap & BIT(i)) != 0)) { in arch_sched_directed_ipi() 32 MSIP(_kernel.cpus[i].arch.hartid) = 1; in arch_sched_directed_ipi() 43 MSIP(_kernel.cpus[cpu].arch.hartid) = 1; in arch_flush_fpu_ipi()
|
/Zephyr-latest/include/zephyr/arch/x86/ia32/ |
D | arch.h | 252 if (_kernel.idle) { in arch_irq_direct_pm() 253 _kernel.idle = 0; in arch_irq_direct_pm() 283 ++_kernel.cpus[0].nested; in arch_isr_direct_header() 299 --_kernel.cpus[0].nested; in arch_isr_direct_footer() 307 if (swap != 0 && _kernel.cpus[0].nested == 0 && in arch_isr_direct_footer() 308 _kernel.ready_q.cache != arch_current_thread()) { in arch_isr_direct_footer()
|
/Zephyr-latest/boards/native/native_posix/ |
D | irq_handler.c | 79 if (_kernel.cpus[0].nested == 0) { in posix_irq_handler() 83 _kernel.cpus[0].nested++; in posix_irq_handler() 99 _kernel.cpus[0].nested--; in posix_irq_handler() 108 && (_kernel.ready_q.cache) && (_kernel.ready_q.cache != arch_current_thread())) { in posix_irq_handler()
|
/Zephyr-latest/boards/native/native_sim/ |
D | irq_handler.c | 87 if (_kernel.cpus[0].nested == 0) { in posix_irq_handler() 91 _kernel.cpus[0].nested++; in posix_irq_handler() 107 _kernel.cpus[0].nested--; in posix_irq_handler() 116 && (_kernel.ready_q.cache) && (_kernel.ready_q.cache != arch_current_thread())) { in posix_irq_handler()
|
/Zephyr-latest/tests/kernel/ipi_cascade/src/ |
D | main.c | 80 str, _kernel.cpus[0].current, in show_executing_threads() 81 _kernel.cpus[0].current->name, in show_executing_threads() 82 _kernel.cpus[0].current->base.prio); in show_executing_threads() 84 str, _kernel.cpus[1].current, in show_executing_threads() 85 _kernel.cpus[1].current->name, in show_executing_threads() 86 _kernel.cpus[1].current->base.prio); in show_executing_threads()
|
/Zephyr-latest/include/zephyr/arch/arc/ |
D | arch_inlines.h | 24 return &_kernel.cpus[core]; in arch_curr_cpu() 26 return &_kernel.cpus[0]; in arch_curr_cpu()
|
/Zephyr-latest/arch/arm/core/ |
D | userspace.S | 29 GDATA(_kernel) 51 ldr r0, =_kernel 71 ldr ip, =_kernel 104 ldr r0, =_kernel 134 ldr r0, =_kernel 226 ldr r0, =_kernel 254 ldr r0, =_kernel 268 ldr r0, =_kernel 337 ldr r0, =_kernel 356 ldr ip, =_kernel [all …]
|
/Zephyr-latest/boards/native/nrf_bsim/ |
D | irq_handler.c | 105 if (_kernel.cpus[0].nested == 0) { in posix_irq_handler() 109 _kernel.cpus[0].nested++; in posix_irq_handler() 127 _kernel.cpus[0].nested--; in posix_irq_handler() 138 && (_kernel.ready_q.cache) && (_kernel.ready_q.cache != arch_current_thread())) { in posix_irq_handler()
|
/Zephyr-latest/subsys/debug/coredump/ |
D | coredump_core.c | 134 for (current = _kernel.threads; current; current = current->next_thread) { in process_memory_region_list() 139 char *irq_stack = _kernel.cpus[0].irq_stack; in process_memory_region_list() 160 hdr.num_bytes += sizeof(_kernel); in dump_threads_metadata() 163 coredump_buffer_output((uint8_t *)&_kernel, sizeof(_kernel)); in dump_threads_metadata()
|
/Zephyr-latest/arch/arm/core/cortex_a_r/ |
D | irq_manage.c | 99 if (_kernel.idle) { in _arch_isr_direct_pm() 100 _kernel.idle = 0; in _arch_isr_direct_pm()
|
/Zephyr-latest/arch/nios2/core/ |
D | exception.S | 88 movhi r10, %hi(_kernel) 89 ori r10, r10, %lo(_kernel) 114 movhi r10, %hi(_kernel) 115 ori r10, r10, %lo(_kernel)
|
D | irq_manage.c | 83 _kernel.cpus[0].nested++; in _enter_irq() 107 _kernel.cpus[0].nested--; in _enter_irq()
|
/Zephyr-latest/include/zephyr/debug/ |
D | object_tracing.h | 19 #define SYS_THREAD_MONITOR_HEAD ((struct k_thread *)(_kernel.threads))
|
/Zephyr-latest/tests/kernel/obj_core/obj_core_stats/src/ |
D | main.c | 74 status = k_obj_core_stats_raw(K_OBJ_CORE(&_kernel), kernel_raw, in ZTEST() 85 status = k_obj_core_stats_raw(K_OBJ_CORE(&_kernel.cpus[i]), in ZTEST() 99 status = k_obj_core_stats_query(K_OBJ_CORE(&_kernel), &kernel_query, in ZTEST() 106 status = k_obj_core_stats_query(K_OBJ_CORE(&_kernel.cpus[i]), in ZTEST() 145 status = k_obj_core_stats_reset(K_OBJ_CORE(&_kernel.cpus[i])); in ZTEST() 157 status = k_obj_core_stats_disable(K_OBJ_CORE(&_kernel.cpus[i])); in ZTEST() 169 status = k_obj_core_stats_enable(K_OBJ_CORE(&_kernel.cpus[i])); in ZTEST() 180 status = k_obj_core_stats_reset(K_OBJ_CORE(&_kernel)); in ZTEST() 189 status = k_obj_core_stats_disable(K_OBJ_CORE(&_kernel)); in ZTEST() 198 status = k_obj_core_stats_enable(K_OBJ_CORE(&_kernel)); in ZTEST()
|
/Zephyr-latest/include/zephyr/arch/arm/ |
D | arch_inlines.h | 25 return &_kernel.cpus[0]; in arch_curr_cpu()
|