Searched refs:main_thread (Results 1 – 7 of 7) sorted by relevance
/Zephyr-latest/tests/arch/arm/arm_thread_swap_tz/src/ |
D | main.c | 23 static volatile const struct k_thread *main_thread; variable 41 zassert_true(main_thread->arch.mode_exc_return & EXC_RETURN_S, in work_func() 42 "EXC_RETURN not secure: 0x%x\n", main_thread->arch.mode_exc_return); in work_func() 46 zassert_false(main_thread->arch.mode_exc_return & EXC_RETURN_S, in work_func() 47 "EXC_RETURN not nonsecure: 0x%x\n", main_thread->arch.mode_exc_return); in work_func() 89 main_thread = (struct k_thread *)curr; in ZTEST()
|
/Zephyr-latest/tests/kernel/workq/user_work/src/ |
D | main.c | 27 static struct k_thread *main_thread; variable 147 k_object_access_grant(&dummy_sema, main_thread); in test_user_workq_granted_access_setup() 181 main_thread = k_current_get(); in workq_setup() 182 k_thread_access_grant(main_thread, &sync_sema, &user_workq.thread, in workq_setup()
|
/Zephyr-latest/arch/arm/core/cortex_m/ |
D | thread.c | 520 void arch_switch_to_main_thread(struct k_thread *main_thread, char *stack_ptr, in arch_switch_to_main_thread() argument 525 arch_current_thread_set(main_thread); in arch_switch_to_main_thread() 536 z_arm_tls_ptr = main_thread->tls; in arch_switch_to_main_thread() 550 z_arm_configure_dynamic_mpu_regions(main_thread); in arch_switch_to_main_thread() 556 __set_PSPLIM(main_thread->stack_info.start); in arch_switch_to_main_thread()
|
/Zephyr-latest/arch/posix/core/ |
D | swap.c | 83 void arch_switch_to_main_thread(struct k_thread *main_thread, char *stack_ptr, in arch_switch_to_main_thread() argument
|
/Zephyr-latest/kernel/include/ |
D | kernel_arch_interface.h | 174 void arch_switch_to_main_thread(struct k_thread *main_thread, char *stack_ptr,
|
/Zephyr-latest/tests/kernel/usage/thread_runtime_stats/src/ |
D | test_thread_runtime_stats.c | 29 static struct k_thread *main_thread; variable 381 k_thread_resume(main_thread); in resume_main() 425 main_thread = arch_current_thread(); in ZTEST()
|
/Zephyr-latest/tests/kernel/workq/work/src/ |
D | main.c | 57 static struct k_thread *main_thread; variable 1452 main_thread = k_current_get(); in workq_setup()
|