mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:37:46 +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);
|
||||||
push_on_new_stack(argv_entries.size());
|
push_on_new_stack(argv_entries.size());
|
||||||
#else
|
#else
|
||||||
regs.rdi = argv;
|
regs.rdi = argv_entries.size();
|
||||||
regs.rsi = argv_entries.size();
|
regs.rsi = argv;
|
||||||
regs.rdx = envp;
|
regs.rdx = envp;
|
||||||
#endif
|
#endif
|
||||||
push_on_new_stack(0); // return address
|
push_on_new_stack(0); // return address
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue