瀏覽代碼

[Pal] remove unused save_return_point macro

Since save_return_point isn't used, so remove it.

Signed-off-by: Isaku Yamahata <isaku.yamahata@gmail.com>
Isaku Yamahata 6 年之前
父節點
當前提交
c1c895521d
共有 3 個文件被更改,包括 0 次插入15 次删除
  1. 0 5
      Pal/src/host/FreeBSD/db_exception.c
  2. 0 5
      Pal/src/host/FreeBSD/db_exception2.c
  3. 0 5
      Pal/src/host/Linux-SGX/db_exception.c

+ 0 - 5
Pal/src/host/FreeBSD/db_exception.c

@@ -206,11 +206,6 @@ struct exception_handler * pal_handlers [PAL_EVENT_NUM_BOUND] = {
         &handler_Failure,
     };
 
-#define save_return_point(ptr)                      \
-    asm volatile ("leaq 0(%%rip), %%rax\r\n"        \
-                  "movq %%rax, %0\r\n"              \
-                  : "=b"(ptr) :: "memory", "rax")
-
 static int get_event_num (int signum)
 {
     switch(signum) {

+ 0 - 5
Pal/src/host/FreeBSD/db_exception2.c

@@ -117,11 +117,6 @@ typedef struct {
 
 #define SIGNAL_MASK_TIME 1000
 
-#define save_return_point(ptr)                      \
-    asm volatile ("leaq 0(%%rip), %%rax\r\n"        \
-                  "movq %%rax, %0\r\n"              \
-                  : "=b"(ptr) :: "memory", "rax")
-
 static int get_event_num (int signum)
 {
     switch(signum) {

+ 0 - 5
Pal/src/host/Linux-SGX/db_exception.c

@@ -45,11 +45,6 @@ typedef struct exception_event {
     struct pal_frame *  frame;
 } PAL_EVENT;
 
-#define save_return_point(ptr)                      \
-    asm volatile ("leaq 0(%%rip), %%rax\r\n"        \
-                  "movq %%rax, %0\r\n"              \
-                  : "=b"(ptr) :: "memory", "rax")
-
 void _DkGenericEventTrigger (PAL_IDX event_num, PAL_EVENT_HANDLER upcall,
                              PAL_NUM arg, struct pal_frame * frame,
                              PAL_CONTEXT * context)