Searched refs:oldthread (Results 1 - 6 of 6) sorted by relevance
/fuchsia/zircon/kernel/include/arch/ |
H A D | thread.h | 19 void arch_context_switch(struct thread *oldthread, struct thread *newthread);
|
/fuchsia/zircon/kernel/kernel/ |
H A D | sched.cpp | 770 __NO_SAFESTACK static void final_context_switch(thread_t* oldthread, argument 773 arch_context_switch(oldthread, newthread); 797 thread_t* oldthread = current_thread; local 798 oldthread->preempt_pending = false; 800 LOCAL_KTRACE2("resched old pri", (uint32_t)oldthread->user_tid, effec_priority(oldthread)); 808 if (newthread == oldthread) { 815 DEBUG_ASSERT(now >= oldthread->last_started_running); 816 zx_duration_t old_runtime = zx_time_sub_time(now, oldthread->last_started_running); 817 oldthread [all...] |
/fuchsia/zircon/kernel/arch/x86/ |
H A D | thread.cpp | 88 __NO_SAFESTACK __attribute__((target("fsgsbase"))) void arch_context_switch(thread_t* oldthread, thread_t* newthread) { argument 89 x86_extended_register_context_switch(oldthread, newthread); 100 oldthread->arch.fs_base = _readfsbase_u64(); 102 oldthread->arch.fs_base = read_msr(X86_MSR_IA32_FS_BASE); 139 : [old_value] "=&r"(oldthread->arch.gs_base) 144 oldthread->arch.gs_base = read_msr(X86_MSR_IA32_KERNEL_GS_BASE); 150 oldthread->arch.unsafe_sp = x86_read_gs_offset64(ZX_TLS_UNSAFE_SP_OFFSET); 154 x86_64_context_switch(&oldthread->arch.sp, newthread->arch.sp);
|
/fuchsia/zircon/kernel/arch/arm64/ |
H A D | thread.cpp | 94 __NO_SAFESTACK void arch_context_switch(thread_t* oldthread, argument 96 LTRACEF("old %p (%s), new %p (%s)\n", oldthread, oldthread->name, newthread, newthread->name); 104 arm64_fpu_context_switch(oldthread, newthread); 105 arm64_context_switch(&oldthread->arch.sp, newthread->arch.sp);
|
H A D | fpu.cpp | 91 __NO_SAFESTACK void arm64_fpu_context_switch(struct thread* oldthread, argument 95 LTRACEF("saving state on thread %s\n", oldthread->name); 98 arm64_fpu_save_state(oldthread);
|
/fuchsia/zircon/kernel/arch/arm64/include/arch/ |
H A D | arm64.h | 123 void arm64_fpu_context_switch(struct thread* oldthread, struct thread* newthread);
|
Completed in 81 milliseconds