diff options
author | Gunnar Beutner <gbeutner@serenityos.org> | 2021-06-29 02:56:07 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-06-29 20:03:36 +0200 |
commit | df9e73de25637c88413b045bf21cd0fec7f72a68 (patch) | |
tree | 9057911ad2a71f2c792864a12ef549207b494f87 /Kernel/Arch/x86/i386 | |
parent | 811f9d562d87ef7c9d8891c2564f149d805e4f38 (diff) | |
download | serenity-df9e73de25637c88413b045bf21cd0fec7f72a68.zip |
Kernel: Add x86_64 support for fork()
Diffstat (limited to 'Kernel/Arch/x86/i386')
-rw-r--r-- | Kernel/Arch/x86/i386/Processor.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/Kernel/Arch/x86/i386/Processor.cpp b/Kernel/Arch/x86/i386/Processor.cpp index af5d14d93d..801d928bd2 100644 --- a/Kernel/Arch/x86/i386/Processor.cpp +++ b/Kernel/Arch/x86/i386/Processor.cpp @@ -17,7 +17,6 @@ namespace Kernel { #define ENTER_THREAD_CONTEXT_ARGS_SIZE (2 * 4) // to_thread, from_thread extern "C" void thread_context_first_enter(void); -extern "C" void do_assume_context(Thread* thread, u32 flags); extern "C" void exit_kernel_thread(void); // clang-format off @@ -236,21 +235,6 @@ void Processor::switch_context(Thread*& from_thread, Thread*& to_thread) Processor::current().restore_in_critical(to_thread->saved_critical()); } -void Processor::assume_context(Thread& thread, FlatPtr flags) -{ - dbgln_if(CONTEXT_SWITCH_DEBUG, "Assume context for thread {} {}", VirtualAddress(&thread), thread); - - VERIFY_INTERRUPTS_DISABLED(); - Scheduler::prepare_after_exec(); - // in_critical() should be 2 here. The critical section in Process::exec - // and then the scheduler lock - VERIFY(Processor::current().in_critical() == 2); - - do_assume_context(&thread, flags); - - VERIFY_NOT_REACHED(); -} - UNMAP_AFTER_INIT void Processor::initialize_context_switching(Thread& initial_thread) { VERIFY(initial_thread.process().is_kernel_process()); |