From 68c8cc100be0f8ffe490cfc20b3deea6425bdd44 Mon Sep 17 00:00:00 2001 From: "zongmin.gu" Date: Fri, 14 Aug 2020 15:26:14 +0800 Subject: [PATCH] Fix the syscall interface bug --- src/libos/include/task.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libos/include/task.h b/src/libos/include/task.h index 6ca343bc..20322b7a 100644 --- a/src/libos/include/task.h +++ b/src/libos/include/task.h @@ -46,7 +46,7 @@ void do_exit_task(void); /*In SGX SDK the GS register point to thread_data_t structure and a whole page is assigned to the structure. So any offset larger than sizeof(thread_data_t) and less than 4096 is unused by anyone. We can use it.*/ -#define TD_SYSCALL_RET_ADDR_OFFSET 0x40 +#define TD_SYSCALL_RET_ADDR_OFFSET 0x100 #define TASK_KERNEL_RSP (8 * 0) #define TASK_KERNEL_STACK_BASE (8 * 1)