Kernel: Fix framepointers on started threads
This commit is contained in:
@@ -15,6 +15,7 @@ start_thread:
|
|||||||
movl 8(%esp), %ecx
|
movl 8(%esp), %ecx
|
||||||
movl 4(%esp), %esp
|
movl 4(%esp), %esp
|
||||||
movl $0, %ebp
|
movl $0, %ebp
|
||||||
|
movl $0, (%esp)
|
||||||
pushl $exit_thread_trampoline
|
pushl $exit_thread_trampoline
|
||||||
sti
|
sti
|
||||||
jmp *%ecx
|
jmp *%ecx
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ start_thread:
|
|||||||
movq %rdi, %rsp
|
movq %rdi, %rsp
|
||||||
popq %rdi
|
popq %rdi
|
||||||
movq $0, %rbp
|
movq $0, %rbp
|
||||||
|
movq $0, (%rsp)
|
||||||
pushq $exit_thread_trampoline
|
pushq $exit_thread_trampoline
|
||||||
sti
|
sti
|
||||||
jmp *%rsi
|
jmp *%rsi
|
||||||
|
|||||||
Reference in New Issue
Block a user