]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseLib/Ia32/DisablePaging32.S
sync comments.
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ia32 / DisablePaging32.S
index ee8efc62ef55efe87c54317a94fb87a2da8e7e40..d7aeec50cf83bde7da8afdc8ea29e88372757c47 100644 (file)
@@ -38,15 +38,15 @@ ASM_PFX(InternalX86DisablePaging32):
     movl    8(%esp), %ecx\r
     movl    12(%esp), %edx\r
     pushfl\r
-    pop     %edi\r
+    pop     %edi                        # save EFLAGS to edi\r
     cli\r
     movl    %cr0, %eax\r
     btrl    $31, %eax\r
     movl    16(%esp), %esp\r
     movl    %eax, %cr0\r
     push    %edi\r
-    popfl\r
+    popfl                               # restore EFLAGS from edi\r
     push    %edx\r
     push    %ecx\r
     call    *%ebx\r
-    jmp     .\r
+    jmp     .                           # EntryPoint() should not return\r