summaryrefslogtreecommitdiff
path: root/MdePkg
diff options
context:
space:
mode:
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2009-06-05 13:31:58 +0000
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2009-06-05 13:31:58 +0000
commit5a76206190c2c532af851e1066d606d263b4eb93 (patch)
tree20b97ec3dcdd120d429e1099db4cf862ff2cf8b4 /MdePkg
parent2e56bb155b83686a15b24bffb104396902d75877 (diff)
downloadedk2-platforms-5a76206190c2c532af851e1066d606d263b4eb93.tar.xz
Need use 32-bit register to hold 32-bit stack address.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8480 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg')
-rw-r--r--MdePkg/Library/BaseLib/X64/DisablePaging64.asm6
1 files changed, 3 insertions, 3 deletions
diff --git a/MdePkg/Library/BaseLib/X64/DisablePaging64.asm b/MdePkg/Library/BaseLib/X64/DisablePaging64.asm
index 502a54c4e5..a2995daa33 100644
--- a/MdePkg/Library/BaseLib/X64/DisablePaging64.asm
+++ b/MdePkg/Library/BaseLib/X64/DisablePaging64.asm
@@ -37,9 +37,9 @@
InternalX86DisablePaging64 PROC
cli
lea rsi, @F ; rsi <- The start address of transition code
- mov rdi, [rsp + 28h] ; rdi <- New stack
- sub rdi, 64 ; rdi <- use 64 byte in stack to hold transition code
- mov r10, rdi ; r10 <- The start address of transicition code below 4G
+ mov edi, [rsp + 28h] ; rdi <- New stack
+ sub edi, 64 ; rdi <- use 64 byte in stack to hold transition code
+ mov r10d, edi ; r10 <- The start address of transicition code below 4G
lea rax, mTransitionEnd ; rax <- end of transition code
sub rax, rsi ; rax <- The size of transition piece code
push rcx ; save rcx to stack