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
This commit is contained in:
klu2 2009-06-05 13:31:58 +00:00
parent 2e56bb155b
commit 5a76206190
1 changed files with 3 additions and 3 deletions

View File

@ -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