diff options
Diffstat (limited to 'MdePkg/Library/BaseLib/Ia32/EnablePaging64.asm')
-rw-r--r-- | MdePkg/Library/BaseLib/Ia32/EnablePaging64.asm | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/MdePkg/Library/BaseLib/Ia32/EnablePaging64.asm b/MdePkg/Library/BaseLib/Ia32/EnablePaging64.asm index 6c9b0ea76b..354d1fe603 100644 --- a/MdePkg/Library/BaseLib/Ia32/EnablePaging64.asm +++ b/MdePkg/Library/BaseLib/Ia32/EnablePaging64.asm @@ -25,9 +25,20 @@ .model flat,C
.code
+;------------------------------------------------------------------------------
+; VOID
+; EFIAPI
+; InternalX86EnablePaging64 (
+; IN UINT16 Cs,
+; IN UINT64 EntryPoint,
+; IN UINT64 Context1, OPTIONAL
+; IN UINT64 Context2, OPTIONAL
+; IN UINT64 NewStack
+; );
+;------------------------------------------------------------------------------
InternalX86EnablePaging64 PROC
cli
- mov [esp], @F ; offset for far retf
+ mov [esp], @F ; offset for far retf, seg is the 1st arg
mov eax, cr4
or al, (1 SHL 5)
mov cr4, eax ; enable PAE
|