X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseLib%2FIa32%2FDisablePaging32.S;h=5ade180009fc4d3c5eeecf347f49ff0e7e134d5a;hp=b4e488ffe64929917c094c515b23697f35dbe3ad;hb=3f566587aea64bb986866c7f69a6b82891bf59db;hpb=31a9215c3223d3818d1709f39d06774e18df103f 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 . - - -