Set default FPU control word to 0x37F

This commit is contained in:
Jeremy Soller
2022-08-22 08:10:42 -06:00
parent 1243330146
commit eac4a349d8
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -22,7 +22,7 @@ _start:
mov DWORD PTR [esp], 0x00001F80
# ldmxcsr [esp]
mov WORD PTR [esp], 0x031F
mov WORD PTR [esp], 0x037F
fldcw [esp]
add esp, 8
@@ -44,7 +44,7 @@ _start:
mov DWORD PTR [rsp], 0x00001F80
ldmxcsr [rsp]
mov WORD PTR [rsp], 0x031F
mov WORD PTR [rsp], 0x037F
fldcw [rsp]
add rsp, 8
+2 -2
View File
@@ -98,7 +98,7 @@ __relibc_internal_pte_clone_ret:
mov DWORD PTR [esp], 0x00001F80
# TODO: ldmxcsr [esp]
mov WORD PTR [esp], 0x031F
mov WORD PTR [esp], 0x037F
fldcw [esp]
add esp, 8
@@ -134,7 +134,7 @@ __relibc_internal_pte_clone_ret:
mov DWORD PTR [rsp], 0x00001F80
ldmxcsr [rsp]
mov WORD PTR [rsp], 0x031F
mov WORD PTR [rsp], 0x037F
fldcw [rsp]
add rsp, 8