/* * Copyright (c) 2018-2020, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ #include #include #include #include #include #include #include #include namespace Kernel { // The compiler can't see the calls to these functions inside assembly. // Declare them, to avoid dead code warnings. extern "C" void enter_thread_context(Thread* from_thread, Thread* to_thread) __attribute__((used)); extern "C" void context_first_init(Thread* from_thread, Thread* to_thread, TrapFrame* trap) __attribute__((used)); extern "C" u32 do_init_context(Thread* thread, u32 flags) __attribute__((used)); extern "C" void enter_thread_context(Thread* from_thread, Thread* to_thread) { (void)from_thread; (void)to_thread; TODO(); } extern "C" void context_first_init([[maybe_unused]] Thread* from_thread, [[maybe_unused]] Thread* to_thread, [[maybe_unused]] TrapFrame* trap) { TODO(); } extern "C" u32 do_init_context(Thread* thread, u32 flags) { (void)thread; (void)flags; TODO(); } }