Skip to content

Commit

Permalink
forgot pushfq/popqfq: fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
raoulstrackx committed Oct 25, 2019
1 parent 34f5d59 commit 5aafa98
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libstd/sys/sgx/abi/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,9 @@ sgx_entry:
/* reset user state */
/* - DF flag: x86-64 ABI requires DF to be unset at function entry/exit */
/* - AC flag: AEX on misaligned memory accesses leaks side channel info */
pushfq
andq $~0x40400, (%rsp)
popfq

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

0 comments on commit 5aafa98

Please sign in to comment.