]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UnixPkg/Library/UnixBaseLib/X64/SwitchStack.S
Adding Simple Pointer, GOP, SimpleTextInEx, and Networking protocols to the emulator...
[mirror_edk2.git] / UnixPkg / Library / UnixBaseLib / X64 / SwitchStack.S
index 3a84b0d22f8e79e425e98041fb764b295a78a5af..fd7ba6e717747df756fbd59dbf1a40b5229e4c85 100644 (file)
@@ -40,12 +40,9 @@ ASM_PFX(InternalSwitchStack):
     movq    %rcx, %rax\r
     movq    %rdx, %rcx\r
     movq    %r8,  %rdx\r
-    movq    %r9,  %rsp\r
-\r
     #\r
     # Reserve space for register parameters (rcx, rdx, r8 & r9) on the stack,\r
     # in case the callee wishes to spill them.\r
     #\r
-         subq    $40, %rsp  // 32-byte shadow space plus alignment pad\r
-\r
+    lea     -0x20(%r9), %rsp\r
     call    *%rax\r