mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
Kernel: Implement more x86_64 context switching functionality
This commit is contained in:
parent
076692b1ef
commit
32840dfa17
Notes:
sideshowbarker
2024-07-18 11:25:19 +09:00
Author: https://github.com/gunnarbeutner
Commit: 32840dfa17
Pull-request: https://github.com/SerenityOS/serenity/pull/8290
Reviewed-by: https://github.com/Hendiadyoin1
8 changed files with 151 additions and 132 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue