core: Don't set the second thread argument to zero

This defeated the point of passing the page tables to init, since rsi would be set to zero anyway.
This commit is contained in:
Gabriel 2025-02-20 23:01:28 +01:00
parent b2d89ab4fd
commit 5cb9689d10
Signed by: asleepymoon
GPG Key ID: 7F4BD1EBD1D53E5A

View File

@ -14,7 +14,6 @@ pub inline fn enterTask(regs: *interrupts.InterruptStackFrame, comptime base: u6
\\ mov $0, %rbx
\\ mov $0, %rcx
\\ mov $0, %rdx
\\ mov $0, %rsi
\\ mov $0, %rbp
\\ mov $0, %r8
\\ mov $0, %r9
@ -31,7 +30,8 @@ pub inline fn enterTask(regs: *interrupts.InterruptStackFrame, comptime base: u6
[rflags] "r" (regs.rflags),
[cs] "r" (regs.cs),
[rip] "r" (regs.rip),
[arg] "{rdi}" (regs.rdi),
[arg0] "{rdi}" (regs.rdi),
[arg1] "{rsi}" (regs.rsi),
[base] "r" (base),
[directory] "r" (directory),
);