Skip to content

Commit 5aafa98

Browse files
committed
forgot pushfq/popqfq: fixed
1 parent 34f5d59 commit 5aafa98

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libstd/sys/sgx/abi/entry.S

+2
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,9 @@ sgx_entry:
123123
/* reset user state */
124124
/* - DF flag: x86-64 ABI requires DF to be unset at function entry/exit */
125125
/* - AC flag: AEX on misaligned memory accesses leaks side channel info */
126+
pushfq
126127
andq $~0x40400, (%rsp)
128+
popfq
127129

128130
/* check for debug buffer pointer */
129131
testb $0xff,DEBUG(%rip)

0 commit comments

Comments
 (0)