Skip to content
Snippets Groups Projects
Verified Commit db16393f authored by Jacob Lorentzon's avatar Jacob Lorentzon
Browse files

Manually init FPU context in pte_clone.

parent 24ecd6ee
No related branches found
No related tags found
No related merge requests found
...@@ -296,7 +296,6 @@ fork_ret: ...@@ -296,7 +296,6 @@ fork_ret:
.globl pte_clone_ret .globl pte_clone_ret
.type pte_clone_ret, @function .type pte_clone_ret, @function
pte_clone_ret: pte_clone_ret:
# Load registers # Load registers
pop rax pop rax
pop rdi pop rdi
...@@ -306,6 +305,15 @@ pte_clone_ret: ...@@ -306,6 +305,15 @@ pte_clone_ret:
pop r8 pop r8
pop r9 pop r9
sub rsp, 8
mov DWORD PTR [rsp], 0x00001F80
ldmxcsr [rsp]
mov WORD PTR [rsp], 0x031F
fldcw [rsp]
add rsp, 8
# Call entry point # Call entry point
call rax call rax
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment