summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BaseLib/Ia32/EnablePaging32.S
diff options
context:
space:
mode:
Diffstat (limited to 'MdePkg/Library/BaseLib/Ia32/EnablePaging32.S')
-rw-r--r--MdePkg/Library/BaseLib/Ia32/EnablePaging32.S28
1 files changed, 11 insertions, 17 deletions
diff --git a/MdePkg/Library/BaseLib/Ia32/EnablePaging32.S b/MdePkg/Library/BaseLib/Ia32/EnablePaging32.S
index 7c97a502da..7335e628f9 100644
--- a/MdePkg/Library/BaseLib/Ia32/EnablePaging32.S
+++ b/MdePkg/Library/BaseLib/Ia32/EnablePaging32.S
@@ -21,9 +21,7 @@
#
#------------------------------------------------------------------------------
-
-
-
+.global _InternalX86EnablePaging32
#------------------------------------------------------------------------------
# VOID
@@ -35,24 +33,20 @@
# IN VOID *NewStack
# );
#------------------------------------------------------------------------------
-.global _InternalX86EnablePaging32
-_InternalX86EnablePaging32:
- movl 4(%esp),%ebx
- movl 8(%esp),%ecx
- movl 12(%esp),%edx
+_InternalX86EnablePaging32:
+ movl 4(%esp), %ebx
+ movl 8(%esp), %ecx
+ movl 12(%esp), %edx
pushfl
- popl %edi
+ pop %edi
cli
movl %cr0, %eax
- btsl $31,%eax
- movl 16(%esp),%esp
+ btsl $31, %eax
+ movl 16(%esp), %esp
movl %eax, %cr0
- pushl %edi
+ push %edi
popfl
- pushl %edx
- pushl %ecx
+ push %edx
+ push %ecx
call *%ebx
jmp .
-
-
-