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:
parent
b2d89ab4fd
commit
5cb9689d10
@ -14,7 +14,6 @@ pub inline fn enterTask(regs: *interrupts.InterruptStackFrame, comptime base: u6
|
|||||||
\\ mov $0, %rbx
|
\\ mov $0, %rbx
|
||||||
\\ mov $0, %rcx
|
\\ mov $0, %rcx
|
||||||
\\ mov $0, %rdx
|
\\ mov $0, %rdx
|
||||||
\\ mov $0, %rsi
|
|
||||||
\\ mov $0, %rbp
|
\\ mov $0, %rbp
|
||||||
\\ mov $0, %r8
|
\\ mov $0, %r8
|
||||||
\\ mov $0, %r9
|
\\ mov $0, %r9
|
||||||
@ -31,7 +30,8 @@ pub inline fn enterTask(regs: *interrupts.InterruptStackFrame, comptime base: u6
|
|||||||
[rflags] "r" (regs.rflags),
|
[rflags] "r" (regs.rflags),
|
||||||
[cs] "r" (regs.cs),
|
[cs] "r" (regs.cs),
|
||||||
[rip] "r" (regs.rip),
|
[rip] "r" (regs.rip),
|
||||||
[arg] "{rdi}" (regs.rdi),
|
[arg0] "{rdi}" (regs.rdi),
|
||||||
|
[arg1] "{rsi}" (regs.rsi),
|
||||||
[base] "r" (base),
|
[base] "r" (base),
|
||||||
[directory] "r" (directory),
|
[directory] "r" (directory),
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user