Browse Source

[LibOS] start.S: remove unnecessary movq

callq can take memory address directly.
it's unnecessary to load the address to register.

Signed-off-by: Isaku Yamahata <isaku.yamahata@gmail.com>
Isaku Yamahata 6 years ago
parent
commit
e568ded00e
1 changed files with 1 additions and 2 deletions
  1. 1 2
      LibOS/shim/src/start.S

+ 1 - 2
LibOS/shim/src/start.S

@@ -53,8 +53,7 @@ shim_start:
     pushq %rbp
     movq %rsp, %rdx
 
-    movq shim_init@GOTPCREL(%rip), %r11
-    call *%r11
+    callq *shim_init@GOTPCREL(%rip)
 
     popq %rbp
     leaveq