diff options
author | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-10-28 09:51:44 +0000 |
---|---|---|
committer | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-10-28 09:51:44 +0000 |
commit | 57246fe073e7946e03387576fca76eba86b51694 (patch) | |
tree | 00f1ec8aabce2506deec539217de37feb885cd31 /MdePkg/Library/BaseLib/Ia32/EnablePaging64.S | |
parent | 85ea851e6a3df3f5021e9e038d6b4162c66b394c (diff) | |
download | edk2-57246fe073e7946e03387576fca76eba86b51694.tar.gz edk2-57246fe073e7946e03387576fca76eba86b51694.tar.bz2 edk2-57246fe073e7946e03387576fca76eba86b51694.zip |
sync comments.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6274 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/BaseLib/Ia32/EnablePaging64.S')
-rw-r--r-- | MdePkg/Library/BaseLib/Ia32/EnablePaging64.S | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/MdePkg/Library/BaseLib/Ia32/EnablePaging64.S b/MdePkg/Library/BaseLib/Ia32/EnablePaging64.S index 45ae2f306b..ce9d3eb2d9 100644 --- a/MdePkg/Library/BaseLib/Ia32/EnablePaging64.S +++ b/MdePkg/Library/BaseLib/Ia32/EnablePaging64.S @@ -36,7 +36,7 @@ #------------------------------------------------------------------------------
ASM_PFX(InternalX86EnablePaging64):
cli
- movl $LongStart, (%esp)
+ movl $LongStart, (%esp) # offset for far retf, seg is the 1st arg
movl %cr4, %eax
orb $0x20, %al
movl %eax, %cr4 # enable PAE
@@ -45,11 +45,11 @@ ASM_PFX(InternalX86EnablePaging64): orb $1, %ah # set LME
wrmsr
movl %cr0, %eax
- btsl $31, %eax
+ btsl $31, %eax # set PG
movl %eax, %cr0 # enable paging
- lret
+ lret # topmost 2 dwords hold the address
LongStart: # long mode starts here
- .byte 0x67, 0x48
+ .byte 0x67, 0x48 # 32-bit address size, 64-bit operand size
movl (%esp), %ebx # mov rbx, [esp]
.byte 0x67, 0x48
movl 8(%esp), %ecx # mov rcx, [esp + 8]
@@ -58,6 +58,6 @@ LongStart: # long mode starts here .byte 0x67, 0x48
movl 0x18(%esp), %esp # mov rsp, [esp + 18h]
.byte 0x48
- addl $0x-0x20, %esp # add rsp, -20h
+ addl $0x-0x20, %esp # add rsp, -20h
call *%ebx # call rbx
- jmp .
+ jmp . # no one should get here
|