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,9 +1,9 @@
|
||||
.global asm_yield_trampoline
|
||||
asm_yield_trampoline:
|
||||
movl %esp, %ecx
|
||||
leal 4(%esp), %ecx
|
||||
movl 4(%esp), %esp
|
||||
|
||||
pushl (%ecx)
|
||||
pushl -4(%ecx)
|
||||
pushl %ecx
|
||||
pushl %eax
|
||||
pushl %ebx
|
||||
|
||||
Reference in New Issue
Block a user