From e5d7696aa4718adbb7089eeb689fb7357d89c63d Mon Sep 17 00:00:00 2001 From: Chia-Che Tsai Date: Sat, 11 Feb 2017 10:17:55 -0500 Subject: [PATCH] fix a typo --- Pal/src/host/Linux-SGX/enclave_entry.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Pal/src/host/Linux-SGX/enclave_entry.S b/Pal/src/host/Linux-SGX/enclave_entry.S index e7c32174..0d4b25b6 100644 --- a/Pal/src/host/Linux-SGX/enclave_entry.S +++ b/Pal/src/host/Linux-SGX/enclave_entry.S @@ -54,7 +54,7 @@ enclave_entry: # push untructed stack address to RCX mov %rsp, %rcx - # switch to the enclve stack: R8 + %gs:SGX_INITIAL_STACK_OFFSET + # switch to enclve stack: enclave base + %gs:SGX_INITIAL_STACK_OFFSET add %gs:SGX_INITIAL_STACK_OFFSET, %rbx mov %rbx, %rsp