mirror of https://github.com/acidanthera/audk.git
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:
parent
2e56bb155b
commit
5a76206190
|
@ -37,9 +37,9 @@
|
||||||
InternalX86DisablePaging64 PROC
|
InternalX86DisablePaging64 PROC
|
||||||
cli
|
cli
|
||||||
lea rsi, @F ; rsi <- The start address of transition code
|
lea rsi, @F ; rsi <- The start address of transition code
|
||||||
mov rdi, [rsp + 28h] ; rdi <- New stack
|
mov edi, [rsp + 28h] ; rdi <- New stack
|
||||||
sub rdi, 64 ; rdi <- use 64 byte in stack to hold transition code
|
sub edi, 64 ; rdi <- use 64 byte in stack to hold transition code
|
||||||
mov r10, rdi ; r10 <- The start address of transicition code below 4G
|
mov r10d, edi ; r10 <- The start address of transicition code below 4G
|
||||||
lea rax, mTransitionEnd ; rax <- end of transition code
|
lea rax, mTransitionEnd ; rax <- end of transition code
|
||||||
sub rax, rsi ; rax <- The size of transition piece code
|
sub rax, rsi ; rax <- The size of transition piece code
|
||||||
push rcx ; save rcx to stack
|
push rcx ; save rcx to stack
|
||||||
|
|
Loading…
Reference in New Issue