Home
last modified time | relevance | path

Searched refs:main_thread (Results 1 – 7 of 7) sorted by relevance

/Zephyr-latest/tests/arch/arm/arm_thread_swap_tz/src/
Dmain.c23 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/
Dmain.c27 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/
Dthread.c520 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/
Dswap.c83 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/
Dkernel_arch_interface.h174 void arch_switch_to_main_thread(struct k_thread *main_thread, char *stack_ptr,
/Zephyr-latest/tests/kernel/usage/thread_runtime_stats/src/
Dtest_thread_runtime_stats.c29 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/
Dmain.c57 static struct k_thread *main_thread; variable
1452 main_thread = k_current_get(); in workq_setup()