| // Copyright 2016 The Fuchsia Authors |
| // Copyright (c) 2008 Travis Geiselbrecht |
| // |
| // Use of this source code is governed by a MIT-style |
| // license that can be found in the LICENSE file or at |
| // https://opensource.org/licenses/MIT |
| |
| #ifndef ZIRCON_KERNEL_INCLUDE_ARCH_THREAD_H_ |
| #define ZIRCON_KERNEL_INCLUDE_ARCH_THREAD_H_ |
| |
| // give the arch code a chance to declare the arch_thread struct |
| #include <zircon/compiler.h> |
| |
| #include <arch/arch_thread.h> |
| |
| __BEGIN_CDECLS |
| |
| struct thread_t; |
| |
| void arch_thread_initialize(thread_t*, vaddr_t entry_point); |
| void arch_context_switch(thread_t* oldthread, thread_t* newthread); |
| void arch_thread_construct_first(thread_t*); |
| void *arch_thread_get_blocked_fp(thread_t*); |
| |
| __END_CDECLS |
| |
| #endif // ZIRCON_KERNEL_INCLUDE_ARCH_THREAD_H_ |