]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseLib/Ia32/LongJump.S
sync comments.
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ia32 / LongJump.S
index a280fe024188aae8ba5bd4cc9425a88a634e718a..11f8bd0f99fd38a65fd0719c2a31334465641cfc 100644 (file)
 #   );
 #------------------------------------------------------------------------------
 ASM_PFX(InternalLongJump):
-    pop     %eax
-    pop     %edx
-    pop     %eax
+    pop     %eax                        # skip return address
+    pop     %edx                        # edx <- JumpBuffer
+    pop     %eax                        # eax <- Value
     movl    (%edx), %ebx
     movl    4(%edx), %esi
     movl    8(%edx), %edi
     movl    12(%edx), %ebp
     movl    16(%edx), %esp
-    jmp     *20(%edx)
+    jmp     *20(%edx)                   # restore "eip"