diff options
author | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-08-02 03:19:19 +0000 |
---|---|---|
committer | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-08-02 03:19:19 +0000 |
commit | 4a78c00aacfa346d96f8bbca6eb41662b3af864e (patch) | |
tree | bfc5164a45c07e95cd16828a78743e1c9564fcb7 /MdePkg/Library/BaseLib | |
parent | af1dd46d37b6f6e3f9bed4c6a485d0c4832a2dd6 (diff) | |
download | edk2-platforms-4a78c00aacfa346d96f8bbca6eb41662b3af864e.tar.xz |
1. cleanup functions header in PeCoffLoaderEx.c
2. fixed link error in EnablePaging64.asm
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1175 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/BaseLib')
-rw-r--r-- | MdePkg/Library/BaseLib/X64/EnablePaging64.asm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/MdePkg/Library/BaseLib/X64/EnablePaging64.asm b/MdePkg/Library/BaseLib/X64/EnablePaging64.asm index 0d64c55134..459120a886 100644 --- a/MdePkg/Library/BaseLib/X64/EnablePaging64.asm +++ b/MdePkg/Library/BaseLib/X64/EnablePaging64.asm @@ -36,7 +36,10 @@ ;------------------------------------------------------------------------------
InternalX86EnablePaging64 PROC
cli
- mov dword ptr [rsp], @F ; offset for far retf, seg is the 1st arg
+ pop rax
+ call @Base
+@Base:
+ add dword ptr [rsp], @F - @Base ; offset for far retf, seg is the 1st arg
mov rax, cr4 ; mov eax, cr4
or al, (1 SHL 5)
mov cr4, rax ; enable PAE
|