diff --git a/Pal/src/host/Linux-SGX/enclave_entry.S b/Pal/src/host/Linux-SGX/enclave_entry.S index 4189ea0b..458d4dd6 100644 --- a/Pal/src/host/Linux-SGX/enclave_entry.S +++ b/Pal/src/host/Linux-SGX/enclave_entry.S @@ -17,6 +17,9 @@ enclave_entry: # On EENTER/ERESUME, RAX is the current SSA, RBX is the address of TCS, # RCX is the address of AEP. Other registers are not trusted. + # x86-64 sysv abi requires %rFLAGS.DF = 0 on entry to function call. + cld + # current SSA is in RAX (Trusted) cmpq $0, %rax jne .Lhandle_resume