summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BaseLib/Ia32/DisablePaging32.asm
diff options
context:
space:
mode:
Diffstat (limited to 'MdePkg/Library/BaseLib/Ia32/DisablePaging32.asm')
-rw-r--r--MdePkg/Library/BaseLib/Ia32/DisablePaging32.asm6
1 files changed, 3 insertions, 3 deletions
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