diff options
author | klu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-06-05 13:31:58 +0000 |
---|---|---|
committer | klu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-06-05 13:31:58 +0000 |
commit | 5a76206190c2c532af851e1066d606d263b4eb93 (patch) | |
tree | 20b97ec3dcdd120d429e1099db4cf862ff2cf8b4 /MdePkg/Library | |
parent | 2e56bb155b83686a15b24bffb104396902d75877 (diff) | |
download | edk2-5a76206190c2c532af851e1066d606d263b4eb93.zip edk2-5a76206190c2c532af851e1066d606d263b4eb93.tar.gz edk2-5a76206190c2c532af851e1066d606d263b4eb93.tar.bz2 |
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/Library')
-rw-r--r-- | MdePkg/Library/BaseLib/X64/DisablePaging64.asm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/MdePkg/Library/BaseLib/X64/DisablePaging64.asm b/MdePkg/Library/BaseLib/X64/DisablePaging64.asm index 502a54c..a2995da 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
|