summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BaseLib/Ia32/LongJump.S
diff options
context:
space:
mode:
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2008-10-28 09:51:44 +0000
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2008-10-28 09:51:44 +0000
commit57246fe073e7946e03387576fca76eba86b51694 (patch)
tree00f1ec8aabce2506deec539217de37feb885cd31 /MdePkg/Library/BaseLib/Ia32/LongJump.S
parent85ea851e6a3df3f5021e9e038d6b4162c66b394c (diff)
downloadedk2-platforms-57246fe073e7946e03387576fca76eba86b51694.tar.xz
sync comments.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6274 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/BaseLib/Ia32/LongJump.S')
-rw-r--r--MdePkg/Library/BaseLib/Ia32/LongJump.S8
1 files changed, 4 insertions, 4 deletions
diff --git a/MdePkg/Library/BaseLib/Ia32/LongJump.S b/MdePkg/Library/BaseLib/Ia32/LongJump.S
index a280fe0241..11f8bd0f99 100644
--- a/MdePkg/Library/BaseLib/Ia32/LongJump.S
+++ b/MdePkg/Library/BaseLib/Ia32/LongJump.S
@@ -30,12 +30,12 @@
# );
#------------------------------------------------------------------------------
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"