20 "TestEnvironmentState not set for current thread. "
21 "Did you forget to call SetCurrentThreadEnvironment()?");
23 auto& core_env = env_state->GetCurrentCoreEnv();
26 auto* prev_task = env_state->FindTaskByContext(prev_ctx);
27 auto* next_task = env_state->FindTaskByContext(next_ctx);
35 event.from = prev_task;
37 event.core_id = core_env.core_id;
38 core_env.switch_history.push_back(event);
41 per_cpu.running_task = next_task;
__always_inline uint64_t & EntryFunction()
__always_inline uint64_t & EntryArgument()
__always_inline uint64_t & ReturnAddress()
__always_inline uint64_t & StackPointer()