Kernel: Fix yield stack pointer value
Stack pointer was pointing to value of return address on return instead of past it. This did not affect anything as ig Processor::yield() didn't use stack after calling the trampoline
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
.global asm_yield_trampoline
|
||||
asm_yield_trampoline:
|
||||
movq %rsp, %rcx
|
||||
leaq 8(%rsp), %rcx
|
||||
movq %rdi, %rsp
|
||||
|
||||
subq $8, %rsp
|
||||
pushq (%rcx)
|
||||
pushq -8(%rcx)
|
||||
pushq %rcx
|
||||
pushq %rax
|
||||
pushq %rbx
|
||||
|
||||
Reference in New Issue
Block a user