mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:28:10 +00:00
Kernel: Fix correct argument order for userspace entry point
This commit is contained in:
parent
449d34a154
commit
90e3aa35ef
1 changed files with 2 additions and 2 deletions
|
@ -144,8 +144,8 @@ static KResultOr<FlatPtr> make_userspace_context_for_main_thread([[maybe_unused]
|
|||
push_on_new_stack(argv);
|
||||
push_on_new_stack(argv_entries.size());
|
||||
#else
|
||||
regs.rdi = argv;
|
||||
regs.rsi = argv_entries.size();
|
||||
regs.rdi = argv_entries.size();
|
||||
regs.rsi = argv;
|
||||
regs.rdx = envp;
|
||||
#endif
|
||||
push_on_new_stack(0); // return address
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue