We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7a9c28 commit fc50036Copy full SHA for fc50036
src/libstd/sys/sgx/abi/entry.S
@@ -121,6 +121,16 @@ sgx_entry:
121
fnstcw %gs:tcsls_user_fcw
122
/* reset user state */
123
cld /* x86-64 ABI requires DF to be unset at function entry/exit */
124
+
125
+/* making sure AC flag is not set in rflags */
126
+/* avoid using the 'clac' instruction to be compatible with older compilers */
127
+ push %rcx
128
+ pushfq
129
+ popq %rcx
130
+ and $0xFFFFFFFFFFFBFFFF, %rcx
131
132
+ popfq
133
134
/* check for debug buffer pointer */
135
testb $0xff,DEBUG(%rip)
136
jz .Lskip_debug_init
0 commit comments