diff options
| author | Raoul Strackx <raoul.strackx@fortanix.com> | 2020-06-19 14:20:35 +0200 |
|---|---|---|
| committer | Raoul Strackx <raoul.strackx@fortanix.com> | 2020-06-19 18:39:07 +0200 |
| commit | 33b304c5e0a620350e0eba0ceda2aab23f3b4e6f (patch) | |
| tree | 1f775828bd2ebcd3e8a94a511be7e3e6086f12cf /src/libstd/sys | |
| parent | daedb7920f48941bd8ffa1b1463b417b1641c823 (diff) | |
| download | rust-33b304c5e0a620350e0eba0ceda2aab23f3b4e6f.tar.gz rust-33b304c5e0a620350e0eba0ceda2aab23f3b4e6f.zip | |
Using xsave restore to restore complete FPU state
Diffstat (limited to 'src/libstd/sys')
| -rw-r--r-- | src/libstd/sys/sgx/abi/entry.S | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/libstd/sys/sgx/abi/entry.S b/src/libstd/sys/sgx/abi/entry.S index 0c3afa77a60..fc6ce577033 100644 --- a/src/libstd/sys/sgx/abi/entry.S +++ b/src/libstd/sys/sgx/abi/entry.S @@ -26,18 +26,10 @@ IMAGE_BASE: .Lxsave_clear: .org .+24 .Lxsave_mxcsr: - .int 0 + .short 0x1f80 /* We can store a bunch of data in the gap between MXCSR and the XSAVE header */ -/* MXCSR initialization value for ABI */ -.Lmxcsr_init: - .int 0x1f80 - -/* x87 FPU control word initialization value for ABI */ -.Lfpucw_init: - .int 0x037f - /* The following symbols point at read-only data that will be filled in by the */ /* post-linker. */ @@ -188,9 +180,6 @@ sgx_entry: mov %gs:tcsls_last_rsp,%r11 test %r11,%r11 jnz .Lusercall_ret -/* reset user state */ - ldmxcsr .Lmxcsr_init(%rip) - fldcw .Lfpucw_init(%rip) /* setup stack */ mov %gs:tcsls_tos,%rsp /* initially, RSP is not set to the correct value */ /* here. This is fixed below under "adjust stack". */ |
