summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BaseLib/Ia32/EnablePaging32.asm
diff options
context:
space:
mode:
Diffstat (limited to 'MdePkg/Library/BaseLib/Ia32/EnablePaging32.asm')
-rw-r--r--MdePkg/Library/BaseLib/Ia32/EnablePaging32.asm4
1 files changed, 2 insertions, 2 deletions
diff --git a/MdePkg/Library/BaseLib/Ia32/EnablePaging32.asm b/MdePkg/Library/BaseLib/Ia32/EnablePaging32.asm
index cf6f2fe458..ae98b93285 100644
--- a/MdePkg/Library/BaseLib/Ia32/EnablePaging32.asm
+++ b/MdePkg/Library/BaseLib/Ia32/EnablePaging32.asm
@@ -40,14 +40,14 @@ InternalX86EnablePaging32 PROC
mov ecx, [esp + 8]
mov edx, [esp + 12]
pushfd
- pop edi
+ pop edi ; save flags in edi
cli
mov eax, cr0
bts eax, 31
mov esp, [esp + 16]
mov cr0, eax
push edi
- popfd
+ popfd ; restore flags
push edx
push ecx
call ebx