]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
authorphcoder <phcoder@localhost>
Fri, 12 Jun 2009 18:22:38 +0000 (18:22 +0000)
committerphcoder <phcoder@localhost>
Fri, 12 Jun 2009 18:22:38 +0000 (18:22 +0000)
* commands/i386/pc/drivemap_int13h.S: add more comments

ChangeLog
commands/i386/pc/drivemap_int13h.S

index a16d5392c704f752fd8f05a9dcdbc7b1578e9c58..c0f0ba472c1cb3651fbc41da863584fcca786fb8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-06-12  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * commands/i386/pc/drivemap_int13h.S: add more comments
+
 2009-06-11  Pavel Roskin  <proski@gnu.org>
 
        * Makefile.in (uninstall): Uninstall manuals.
index 8d360e75288134e8aa653aae1f038725b209e3da..542da09007c5c37af5dae14858b92364683718e6 100644 (file)
@@ -56,6 +56,7 @@ not_found:
        pop     %bx
        pop     %ax
 
+       /* If the call isn't ah=0x8 or ah=0x15 we must restore %dx.  */
        cmpb    $0x8, %ah
        jz      norestore
        cmpb    $0x15, %ah
@@ -71,7 +72,7 @@ not_found:
        mov     %sp, %bp
 
 tail:
-
+       /* Save new flags below %esp so the caller will recieve new flags.  */
        pushf
        pop     %dx
        mov     %dx, 8(%bp)
@@ -93,7 +94,7 @@ norestore:
        push    %bp
        mov     %sp, %bp
 
-       /* Save %dx.  */
+       /* Save %dx. So it won't be restored to original value.  */
        mov     %dx, 2(%bp)
 
        jmp tail