X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseLib%2FIa32%2FDisablePaging32.asm;h=d2949773b32c37a9df59dda558531345a6442dc8;hp=04ae8cf51463cb5976d44584d5254d4efcc74405;hb=3f566587aea64bb986866c7f69a6b82891bf59db;hpb=31a9215c3223d3818d1709f39d06774e18df103f diff --git a/MdePkg/Library/BaseLib/Ia32/DisablePaging32.asm b/MdePkg/Library/BaseLib/Ia32/DisablePaging32.asm index 04ae8cf514..d2949773b3 100644 --- a/MdePkg/Library/BaseLib/Ia32/DisablePaging32.asm +++ b/MdePkg/Library/BaseLib/Ia32/DisablePaging32.asm @@ -40,18 +40,18 @@ InternalX86DisablePaging32 PROC mov ecx, [esp + 8] mov edx, [esp + 12] pushfd - pop edi + pop edi ; save EFLAGS to edi cli mov eax, cr0 btr eax, 31 mov esp, [esp + 16] mov cr0, eax push edi - popfd + popfd ; restore EFLAGS from edi push edx push ecx call ebx - jmp $ + jmp $ ; EntryPoint() should not return InternalX86DisablePaging32 ENDP END