[1/2] x86/sgx: Revert using BIT() to define ENCLS_FAULT_FLAG
diff mbox series

Message ID 20191008041226.2974-2-sean.j.christopherson@intel.com
State New
Headers show
  • x86/sgx: Revert two recent master changes
Related show

Commit Message

Sean Christopherson Oct. 8, 2019, 4:12 a.m. UTC
ENCLS_FAULT_FLAG is run through __stringify() in the ENCLS asm helpers,
the build fails miserably if its defined via BIT().

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
 arch/x86/kernel/cpu/sgx/encls.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff mbox series

diff --git a/arch/x86/kernel/cpu/sgx/encls.h b/arch/x86/kernel/cpu/sgx/encls.h
index f286ba85773e..1676571c8a59 100644
--- a/arch/x86/kernel/cpu/sgx/encls.h
+++ b/arch/x86/kernel/cpu/sgx/encls.h
@@ -60,7 +60,7 @@  enum sgx_encls_leaf {
  * between positive (faults and SGX error codes) and negative (system
  * error codes) values.
+#define ENCLS_FAULT_FLAG 0x40000000
 /* Retrieve the encoded trapnr from the specified return code. */
 #define ENCLS_TRAPNR(r) ((r) & ~ENCLS_FAULT_FLAG)