diff options
Diffstat (limited to 'MdePkg/Library/BaseLib/Ia32/DisablePaging32.S')
-rw-r--r-- | MdePkg/Library/BaseLib/Ia32/DisablePaging32.S | 28 |
1 files changed, 11 insertions, 17 deletions
diff --git a/MdePkg/Library/BaseLib/Ia32/DisablePaging32.S b/MdePkg/Library/BaseLib/Ia32/DisablePaging32.S index b4e488ffe6..5ade180009 100644 --- a/MdePkg/Library/BaseLib/Ia32/DisablePaging32.S +++ b/MdePkg/Library/BaseLib/Ia32/DisablePaging32.S @@ -21,9 +21,7 @@ #
#------------------------------------------------------------------------------
-
-
-
+.global _InternalX86DisablePaging32
#------------------------------------------------------------------------------
# VOID
@@ -35,24 +33,20 @@ # IN VOID *NewStack
# );
#------------------------------------------------------------------------------
-.global _InternalX86DisablePaging32
-_InternalX86DisablePaging32:
- movl 4(%esp),%ebx
- movl 8(%esp),%ecx
- movl 12(%esp),%edx
+_InternalX86DisablePaging32:
+ movl 4(%esp), %ebx
+ movl 8(%esp), %ecx
+ movl 12(%esp), %edx
pushfl
- popl %edi
+ pop %edi
cli
movl %cr0, %eax
- btrl $31,%eax
- movl 16(%esp),%esp
+ btrl $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 .
-
-
-
|