forgot pushfq/popqfq: fixed

This commit is contained in:
Raoul Strackx 2019-10-25 16:06:13 +02:00
parent 34f5d5923f
commit 5aafa98562

View file

@ -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)