]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseLib/X64/EnablePaging64.asm
1. Added comments to ASM files
[mirror_edk2.git] / MdePkg / Library / BaseLib / X64 / EnablePaging64.asm
index 459120a886cce71005364a05b89af7ce8394cb55..c54843008a4554b19f770861afe28b9a3520cdae 100644 (file)
@@ -36,7 +36,7 @@
 ;------------------------------------------------------------------------------\r
 InternalX86EnablePaging64 PROC\r
     cli\r
-    pop     rax\r
+    pop     rax                         ; skip the return address\r
     call    @Base\r
 @Base:\r
     add     dword ptr [rsp], @F - @Base ; offset for far retf, seg is the 1st arg\r
@@ -58,7 +58,7 @@ InternalX86EnablePaging64 PROC
     mov     rsp, [esp + 18h]\r
     add     rsp, -20h\r
     call    rbx\r
-    jmp     $                           ; halt processor if EntryPoint() returned\r
+    hlt                                 ; halt processor if EntryPoint() returned\r
 InternalX86EnablePaging64 ENDP\r
 \r
     END\r