mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-25 17:15:44 +00:00
Kernel: Implement more x86_64 context switching functionality
This commit is contained in:
committed by
Andreas Kling
parent
076692b1ef
commit
32840dfa17
@@ -185,7 +185,7 @@ RefPtr<Process> Process::create_kernel_process(RefPtr<Thread>& first_thread, Str
|
||||
first_thread->regs().esp = FlatPtr(entry_data); // entry function argument is expected to be in regs.esp
|
||||
#else
|
||||
first_thread->regs().rip = (FlatPtr)entry;
|
||||
first_thread->regs().rsp = FlatPtr(entry_data); // entry function argument is expected to be in regs.rsp
|
||||
first_thread->regs().rdi = FlatPtr(entry_data); // entry function argument is expected to be in regs.rdi
|
||||
#endif
|
||||
|
||||
if (process->pid() != 0) {
|
||||
|
||||
Reference in New Issue
Block a user