summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BaseLib
diff options
context:
space:
mode:
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2006-08-02 03:19:19 +0000
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2006-08-02 03:19:19 +0000
commit4a78c00aacfa346d96f8bbca6eb41662b3af864e (patch)
treebfc5164a45c07e95cd16828a78743e1c9564fcb7 /MdePkg/Library/BaseLib
parentaf1dd46d37b6f6e3f9bed4c6a485d0c4832a2dd6 (diff)
downloadedk2-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.asm5
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